pub struct Attribute {
pub id: String,
pub name: String,
pub data_type: String,
pub unit: Option<String>,
pub optional: bool,
}Expand description
Complete, in-memory attribute.
Fields§
§id: String§name: String§data_type: String§unit: Option<String>§optional: boolImplementations§
Source§impl Attribute
impl Attribute
pub fn to_source_attribute(&self) -> SourceAttribute
pub fn to_source_attributes(attributes: &[Attribute]) -> Vec<SourceAttribute>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
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 Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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