pub struct AddUser<'a> {
pub url: Url,
pub username: &'a str,
pub html_link: &'a str,
pub profile_photo: Option<&'a str>,
pub import: bool,
}
Expand description
add new user to database
Fields§
§url: Url
url of the forge instance: with scheme but remove trailing slash url can be derived from html_link also, but used to link to user’s forge instance
username: &'a str
username of the user
html_link: &'a str
html link to the user profile
profile_photo: Option<&'a str>
OPTIONAL: html link to the user’s profile photo
import: bool
is this user an import
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for AddUser<'a>
impl<'de: 'a, 'a> Deserialize<'de> for AddUser<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more