pub struct Struct {
pub name: String,
pub opt: bool,
pub id: Vec<Id>,
pub doc: String,
pub properties: Vec<Property>,
}Fields§
§name: String§opt: bool§id: Vec<Id>§doc: String§properties: Vec<Property>Implementations§
Source§impl Struct
impl Struct
pub fn get_type(&self) -> Result<RustType, Error>
pub fn get_ids(&self, structs: &[Struct]) -> String
pub fn get_properties(&self, structs: &[Struct]) -> Vec<&Property>
Sourcepub fn get_all_properties(&self) -> impl Iterator<Item = PropId<'_>>
pub fn get_all_properties(&self) -> impl Iterator<Item = PropId<'_>>
Get all properties, including foreign ids (own ids are listed in properties).
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
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