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