pub struct Member {
pub node: NodeId,
pub name: String,
pub type_: Id<TypeNode>,
pub optional: bool,
}Expand description
One member of an aggregate, as all three backends see it.
Fields§
§node: NodeIdThe member’s stable identity, which is how the layout plan names it. Carried here so the serialiser can match a planned member to its JSON key without a second walk of the model.
name: StringThe member’s simple name, which is also its JSON key.
type_: Id<TypeNode>The member’s type, resolved.
optional: boolWhether the key may be left out.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnsafeUnpin for Member
impl UnwindSafe for Member
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