pub struct Basics {
pub name: Option<String>,
pub label: Option<String>,
pub image: Option<String>,
pub email: Option<String>,
pub phone: Option<String>,
pub url: Option<String>,
pub summary: Option<String>,
pub location: Location,
pub profiles: Vec<Profile>,
}
Fields§
§name: Option<String>
§label: Option<String>
e.g. Web Developer
image: Option<String>
URL (as per RFC 3986) to a image in JPEG or PNG format
email: Option<String>
e.g. thomas@gmail.com
phone: Option<String>
Phone numbers are stored as strings so use any format you like, e.g. 712-117-2923
url: Option<String>
URL (as per RFC 3986) to your website, e.g. personal homepage
summary: Option<String>
Write a short 2-3 sentence biography about yourself
location: Location
§profiles: Vec<Profile>
Specify any number of social networks that you participate in
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Basics
impl<'de> Deserialize<'de> for Basics
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
Auto Trait Implementations§
impl Freeze for Basics
impl RefUnwindSafe for Basics
impl Send for Basics
impl Sync for Basics
impl Unpin for Basics
impl UnwindSafe for Basics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
Source§impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
Source§fn from_json_value(value: Value) -> Result<T, Error<Error>>
fn from_json_value(value: Value) -> Result<T, Error<Error>>
Convert from
serde_json::Value
. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more