pub struct UnitDefinition {
pub display_name: String,
pub id: String,
pub page_definition_refs: Vec<String>,
pub source_identity: SourceIdentity,
pub type_: String,
}Expand description
UnitDefinition
JSON schema
{
"type": "object",
"required": [
"display_name",
"id",
"page_definition_refs",
"source_identity",
"type"
],
"properties": {
"display_name": {
"type": "string"
},
"id": {
"type": "string"
},
"page_definition_refs": {
"type": "array",
"items": {
"type": "string"
}
},
"source_identity": {
"$ref": "#/$defs/SourceIdentity"
},
"type": {
"type": "string",
"const": "sch.unit_definition"
}
},
"additionalProperties": false
}Fields§
§display_name: String§id: String§page_definition_refs: Vec<String>§source_identity: SourceIdentity§type_: StringTrait Implementations§
Source§impl Clone for UnitDefinition
impl Clone for UnitDefinition
Source§fn clone(&self) -> UnitDefinition
fn clone(&self) -> UnitDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnitDefinition
impl Debug for UnitDefinition
Source§impl<'de> Deserialize<'de> for UnitDefinition
impl<'de> Deserialize<'de> for UnitDefinition
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 UnitDefinition
impl RefUnwindSafe for UnitDefinition
impl Send for UnitDefinition
impl Sync for UnitDefinition
impl Unpin for UnitDefinition
impl UnsafeUnpin for UnitDefinition
impl UnwindSafe for UnitDefinition
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