pub struct SourceAttribute {
pub id: Option<String>,
pub name: String,
pub data_type: String,
pub unit: Option<String>,
pub optional: Option<bool>,
}Expand description
Partial or full, input based attribute.
Fields§
§id: Option<String>§name: String§data_type: String§unit: Option<String>§optional: Option<bool>Implementations§
Source§impl SourceAttribute
impl SourceAttribute
pub fn to_attribute(&self) -> Result<Attribute, Error>
pub fn to_attributes( source_attributes: &[SourceAttribute], ) -> Result<Vec<Attribute>, Error>
Trait Implementations§
Source§impl Clone for SourceAttribute
impl Clone for SourceAttribute
Source§fn clone(&self) -> SourceAttribute
fn clone(&self) -> SourceAttribute
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceAttribute
impl Debug for SourceAttribute
Source§impl<'de> Deserialize<'de> for SourceAttribute
impl<'de> Deserialize<'de> for SourceAttribute
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
Source§impl Serialize for SourceAttribute
impl Serialize for SourceAttribute
Auto Trait Implementations§
impl Freeze for SourceAttribute
impl RefUnwindSafe for SourceAttribute
impl Send for SourceAttribute
impl Sync for SourceAttribute
impl Unpin for SourceAttribute
impl UnwindSafe for SourceAttribute
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