pub enum GenderPreferences {
Men,
Women,
Everyone,
}Variants§
Implementations§
Trait Implementations§
Source§impl ApiEnum for GenderPreferences
impl ApiEnum for GenderPreferences
fn to_api_value(&self) -> i8
fn from_string(s: &str) -> Option<Self>
Source§impl Clone for GenderPreferences
impl Clone for GenderPreferences
Source§fn clone(&self) -> GenderPreferences
fn clone(&self) -> GenderPreferences
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 GenderPreferences
impl Debug for GenderPreferences
Source§impl<'de> Deserialize<'de> for GenderPreferences
impl<'de> Deserialize<'de> for GenderPreferences
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 JsonSchema for GenderPreferences
impl JsonSchema for GenderPreferences
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 GenderPreferences
impl PartialEq for GenderPreferences
Source§impl Serialize for GenderPreferences
impl Serialize for GenderPreferences
impl StructuralPartialEq for GenderPreferences
Auto Trait Implementations§
impl Freeze for GenderPreferences
impl RefUnwindSafe for GenderPreferences
impl Send for GenderPreferences
impl Sync for GenderPreferences
impl Unpin for GenderPreferences
impl UnsafeUnpin for GenderPreferences
impl UnwindSafe for GenderPreferences
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