Struct reflectapi_schema::Struct 
source · pub struct Struct {
    pub name: String,
    pub serde_name: String,
    pub description: String,
    pub parameters: Vec<TypeParameter>,
    pub fields: Vec<Field>,
    pub transparent: bool,
}Fields§
§name: String§serde_name: String§description: String§parameters: Vec<TypeParameter>Generic type parameters, if any
fields: Vec<Field>§transparent: boolIf serde transparent attribute is set on a struct
Implementations§
source§impl Struct
 
impl Struct
pub fn new(name: String) -> Self
pub fn name(&self) -> &str
pub fn serde_name(&self) -> &str
pub fn description(&self) -> &str
pub fn parameters(&self) -> Iter<'_, TypeParameter>
pub fn fields(&self) -> Iter<'_, Field>
pub fn transparent(&self) -> bool
pub fn is_alias(&self) -> bool
pub fn is_tuple(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Struct
 
impl<'de> Deserialize<'de> for Struct
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 PartialEq for Struct
 
impl PartialEq for Struct
impl Eq for Struct
impl StructuralPartialEq for Struct
Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
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