pub enum DatingIntentionProfile {
PreferNotToSay,
LifePartner,
LongTermRelationship,
LongTermOpenToShort,
ShortTermOpenToLong,
ShortTermRelationship,
FiguringOutTheirDatingGoals,
}Variants§
PreferNotToSay
LifePartner
LongTermRelationship
LongTermOpenToShort
ShortTermOpenToLong
ShortTermRelationship
FiguringOutTheirDatingGoals
Implementations§
Source§impl DatingIntentionProfile
impl DatingIntentionProfile
Sourcepub fn to_value(&self) -> Option<DatingIntentionValue>
pub fn to_value(&self) -> Option<DatingIntentionValue>
Returns the base value for this profile option, if one exists.
Sourcepub fn from_value(value: DatingIntentionValue) -> Self
pub fn from_value(value: DatingIntentionValue) -> Self
Construct a profile value from a shared base value.
Sourcepub fn into_preference(self) -> Option<DatingIntentionPreference>
pub fn into_preference(self) -> Option<DatingIntentionPreference>
Convert this profile value into a preference variant when possible.
Trait Implementations§
Source§impl ApiEnum for DatingIntentionProfile
impl ApiEnum for DatingIntentionProfile
fn to_api_value(&self) -> i8
fn from_string(s: &str) -> Option<Self>
Source§impl Clone for DatingIntentionProfile
impl Clone for DatingIntentionProfile
Source§fn clone(&self) -> DatingIntentionProfile
fn clone(&self) -> DatingIntentionProfile
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 DatingIntentionProfile
impl Debug for DatingIntentionProfile
Source§impl<'de> Deserialize<'de> for DatingIntentionProfile
impl<'de> Deserialize<'de> for DatingIntentionProfile
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
Source§impl From<DatingIntentionValue> for DatingIntentionProfile
impl From<DatingIntentionValue> for DatingIntentionProfile
Source§fn from(value: DatingIntentionValue) -> Self
fn from(value: DatingIntentionValue) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DatingIntentionProfile
impl JsonSchema for DatingIntentionProfile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DatingIntentionProfile
impl PartialEq for DatingIntentionProfile
Source§impl Serialize for DatingIntentionProfile
impl Serialize for DatingIntentionProfile
impl StructuralPartialEq for DatingIntentionProfile
Auto Trait Implementations§
impl Freeze for DatingIntentionProfile
impl RefUnwindSafe for DatingIntentionProfile
impl Send for DatingIntentionProfile
impl Sync for DatingIntentionProfile
impl Unpin for DatingIntentionProfile
impl UnsafeUnpin for DatingIntentionProfile
impl UnwindSafe for DatingIntentionProfile
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