pub enum SmokingStatusValue {
No,
Yes,
Sometimes,
}Variants§
Implementations§
Trait Implementations§
Source§impl ApiEnum for SmokingStatusValue
impl ApiEnum for SmokingStatusValue
fn to_api_value(&self) -> i8
fn from_string(s: &str) -> Option<Self>
Source§impl Clone for SmokingStatusValue
impl Clone for SmokingStatusValue
Source§fn clone(&self) -> SmokingStatusValue
fn clone(&self) -> SmokingStatusValue
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 SmokingStatusValue
impl Debug for SmokingStatusValue
Source§impl<'de> Deserialize<'de> for SmokingStatusValue
impl<'de> Deserialize<'de> for SmokingStatusValue
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<SmokingStatusValue> for SmokingStatusPreference
impl From<SmokingStatusValue> for SmokingStatusPreference
Source§fn from(value: SmokingStatusValue) -> Self
fn from(value: SmokingStatusValue) -> Self
Converts to this type from the input type.
Source§impl From<SmokingStatusValue> for SmokingStatusProfile
impl From<SmokingStatusValue> for SmokingStatusProfile
Source§fn from(value: SmokingStatusValue) -> Self
fn from(value: SmokingStatusValue) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for SmokingStatusValue
impl JsonSchema for SmokingStatusValue
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 SmokingStatusValue
impl PartialEq for SmokingStatusValue
Source§impl Serialize for SmokingStatusValue
impl Serialize for SmokingStatusValue
impl StructuralPartialEq for SmokingStatusValue
Auto Trait Implementations§
impl Freeze for SmokingStatusValue
impl RefUnwindSafe for SmokingStatusValue
impl Send for SmokingStatusValue
impl Sync for SmokingStatusValue
impl Unpin for SmokingStatusValue
impl UnsafeUnpin for SmokingStatusValue
impl UnwindSafe for SmokingStatusValue
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