pub enum FlagShape {
BoolFlag(BoolFlagShape),
CountFlag(Option<u32>),
}Variants§
Trait Implementations§
impl Copy for FlagShape
Source§impl<'de> Deserialize<'de> for FlagShape
impl<'de> Deserialize<'de> for FlagShape
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlagShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlagShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FlagShape
Source§impl FromSchema for FlagShape
impl FromSchema for FlagShape
fn from_value(value: &SchemaValue) -> Result<FlagShape, FromSchemaError>
Source§impl IntoSchema for FlagShape
impl IntoSchema for FlagShape
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl Serialize for FlagShape
impl Serialize for FlagShape
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FlagShape
Auto Trait Implementations§
impl Freeze for FlagShape
impl RefUnwindSafe for FlagShape
impl Send for FlagShape
impl Sync for FlagShape
impl Unpin for FlagShape
impl UnsafeUnpin for FlagShape
impl UnwindSafe for FlagShape
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