Struct abbau_types::TypeSpec
source · pub struct TypeSpec {
pub meta: Option<MetaSpec>,
pub doc: Option<String>,
pub doc_ref: Option<StringOrArray>,
pub params: Vec<ParamSpec>,
pub seq: Vec<Attribute>,
pub instances: BTreeMap<String, Attribute>,
pub types: BTreeMap<String, TypeSpec>,
pub enums: BTreeMap<String, EnumSpec>,
}
Expand description
Specification for a type
Fields§
§meta: Option<MetaSpec>
Metadata
doc: Option<String>
Used to give a more detailed description of a user-defined type.
doc_ref: Option<StringOrArray>
Reference to external documentation
params: Vec<ParamSpec>
Generic Parameters
seq: Vec<Attribute>
The sequence of attributes
instances: BTreeMap<String, Attribute>
Named, dynamic attributes
types: BTreeMap<String, TypeSpec>
A sequence of internal types
enums: BTreeMap<String, EnumSpec>
Enums defined by this schema
Trait Implementations§
source§impl<'de> Deserialize<'de> for TypeSpec
impl<'de> Deserialize<'de> for TypeSpec
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 RefUnwindSafe for TypeSpec
impl Send for TypeSpec
impl Sync for TypeSpec
impl Unpin for TypeSpec
impl UnwindSafe for TypeSpec
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