pub struct EnumVariantDescriptionJson {
pub docs: Vec<String>,
pub name: String,
pub discriminant: Option<usize>,
pub fields: Vec<StructFieldDescriptionJson>,
}
Fields§
§docs: Vec<String>
§name: String
§discriminant: Option<usize>
§fields: Vec<StructFieldDescriptionJson>
Implementations§
Source§impl EnumVariantDescriptionJson
impl EnumVariantDescriptionJson
pub fn to_enum_variant_description(&self) -> EnumVariantDescription
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumVariantDescriptionJson
impl<'de> Deserialize<'de> for EnumVariantDescriptionJson
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<&EnumVariantDescription> for EnumVariantDescriptionJson
impl From<&EnumVariantDescription> for EnumVariantDescriptionJson
Source§fn from(abi: &EnumVariantDescription) -> Self
fn from(abi: &EnumVariantDescription) -> Self
Converts to this type from the input type.
Source§impl From<&ExplicitEnumVariantDescription> for EnumVariantDescriptionJson
impl From<&ExplicitEnumVariantDescription> for EnumVariantDescriptionJson
Source§fn from(abi: &ExplicitEnumVariantDescription) -> Self
fn from(abi: &ExplicitEnumVariantDescription) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnumVariantDescriptionJson
impl RefUnwindSafe for EnumVariantDescriptionJson
impl Send for EnumVariantDescriptionJson
impl Sync for EnumVariantDescriptionJson
impl Unpin for EnumVariantDescriptionJson
impl UnwindSafe for EnumVariantDescriptionJson
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