pub enum ChildrenStatusProfile {
PreferNotToSay,
No,
Yes,
}Variants§
Implementations§
Source§impl ChildrenStatusProfile
impl ChildrenStatusProfile
Sourcepub fn to_value(&self) -> Option<ChildrenStatusValue>
pub fn to_value(&self) -> Option<ChildrenStatusValue>
Returns the base value for this profile option, if one exists.
Sourcepub fn from_value(value: ChildrenStatusValue) -> Self
pub fn from_value(value: ChildrenStatusValue) -> Self
Construct a profile value from a shared base value.
Sourcepub fn into_preference(self) -> Option<ChildrenStatusPreference>
pub fn into_preference(self) -> Option<ChildrenStatusPreference>
Convert this profile value into a preference variant when possible.
Trait Implementations§
Source§impl ApiEnum for ChildrenStatusProfile
impl ApiEnum for ChildrenStatusProfile
fn to_api_value(&self) -> i8
fn from_string(s: &str) -> Option<Self>
Source§impl Clone for ChildrenStatusProfile
impl Clone for ChildrenStatusProfile
Source§fn clone(&self) -> ChildrenStatusProfile
fn clone(&self) -> ChildrenStatusProfile
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 ChildrenStatusProfile
impl Debug for ChildrenStatusProfile
Source§impl<'de> Deserialize<'de> for ChildrenStatusProfile
impl<'de> Deserialize<'de> for ChildrenStatusProfile
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<ChildrenStatusValue> for ChildrenStatusProfile
impl From<ChildrenStatusValue> for ChildrenStatusProfile
Source§fn from(value: ChildrenStatusValue) -> Self
fn from(value: ChildrenStatusValue) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ChildrenStatusProfile
impl JsonSchema for ChildrenStatusProfile
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 ChildrenStatusProfile
impl PartialEq for ChildrenStatusProfile
Source§impl Serialize for ChildrenStatusProfile
impl Serialize for ChildrenStatusProfile
impl StructuralPartialEq for ChildrenStatusProfile
Auto Trait Implementations§
impl Freeze for ChildrenStatusProfile
impl RefUnwindSafe for ChildrenStatusProfile
impl Send for ChildrenStatusProfile
impl Sync for ChildrenStatusProfile
impl Unpin for ChildrenStatusProfile
impl UnsafeUnpin for ChildrenStatusProfile
impl UnwindSafe for ChildrenStatusProfile
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