pub struct GenderValue { /* private fields */ }Implementations§
Source§impl GenderValue
impl GenderValue
pub fn from( sex_type: Option<SexType>, gender_identity: Option<Text>, ) -> GenderValue
pub fn from_sex_type(sex_type: SexType) -> GenderValue
pub fn from_gender_identity(gender_identity: Text) -> GenderValue
pub fn with(sex_type: SexType, gender_identity: Text) -> GenderValue
pub fn is_empty(&self) -> bool
Source§impl GenderValue
impl GenderValue
pub fn get_sex_type(&self) -> Option<SexType>
pub fn get_gender_identity(&self) -> Option<&Text>
Trait Implementations§
Source§impl Clone for GenderValue
impl Clone for GenderValue
Source§fn clone(&self) -> GenderValue
fn clone(&self) -> GenderValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenderValue
impl Debug for GenderValue
Source§impl Display for GenderValue
impl Display for GenderValue
Source§impl Hash for GenderValue
impl Hash for GenderValue
Source§impl PartialEq for GenderValue
impl PartialEq for GenderValue
Source§impl ValidatedWrapper for GenderValue
impl ValidatedWrapper for GenderValue
impl Eq for GenderValue
impl StructuralPartialEq for GenderValue
impl Validated for GenderValue
Auto Trait Implementations§
impl Freeze for GenderValue
impl RefUnwindSafe for GenderValue
impl Send for GenderValue
impl Sync for GenderValue
impl Unpin for GenderValue
impl UnwindSafe for GenderValue
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> 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