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