pub struct StructDcl {
pub annotations: Vec<Annotation>,
pub ident: String,
pub parent: Vec<ScopedName>,
pub member: Vec<Member>,
pub inherited: Vec<Member>,
}Fields§
§annotations: Vec<Annotation>§ident: String§parent: Vec<ScopedName>§member: Vec<Member>§inherited: Vec<Member>Members inherited from the single base struct, flattened into this struct’s wire shape. Populated by semantic analysis.
Implementations§
Source§impl StructDcl
impl StructDcl
Sourcepub fn members(&self) -> impl Iterator<Item = &Member>
pub fn members(&self) -> impl Iterator<Item = &Member>
Members of this struct in wire order: inherited members first, then its own members.
Inherited members are the single base struct’s fields, copied into this
struct by semantic analysis. A target that renders a flattened JSON shape
must use this iterator instead of Self::member.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StructDcl
impl<'de> Deserialize<'de> for StructDcl
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
Auto Trait Implementations§
impl Freeze for StructDcl
impl RefUnwindSafe for StructDcl
impl Send for StructDcl
impl Sync for StructDcl
impl Unpin for StructDcl
impl UnsafeUnpin for StructDcl
impl UnwindSafe for StructDcl
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