pub struct VariantCaseType {
pub name: String,
pub payload: Option<SchemaType>,
pub metadata: MetadataEnvelope,
}Fields§
§name: String§payload: Option<SchemaType>§metadata: MetadataEnvelopeTrait Implementations§
Source§impl Clone for VariantCaseType
impl Clone for VariantCaseType
Source§fn clone(&self) -> VariantCaseType
fn clone(&self) -> VariantCaseType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VariantCaseType
impl Debug for VariantCaseType
Source§impl<'de> Deserialize<'de> for VariantCaseType
impl<'de> Deserialize<'de> for VariantCaseType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantCaseType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantCaseType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VariantCaseType
Source§impl FromSchema for VariantCaseType
impl FromSchema for VariantCaseType
fn from_value(value: &SchemaValue) -> Result<VariantCaseType, FromSchemaError>
Source§impl IntoSchema for VariantCaseType
impl IntoSchema for VariantCaseType
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for VariantCaseType
impl PartialEq for VariantCaseType
Source§impl Serialize for VariantCaseType
impl Serialize for VariantCaseType
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 VariantCaseType
Auto Trait Implementations§
impl Freeze for VariantCaseType
impl RefUnwindSafe for VariantCaseType
impl Send for VariantCaseType
impl Sync for VariantCaseType
impl Unpin for VariantCaseType
impl UnsafeUnpin for VariantCaseType
impl UnwindSafe for VariantCaseType
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