pub struct ValidatedSourceAttribute {
pub id: String,
pub name: String,
pub data_type: String,
pub unit: Option<String>,
pub optional: bool,
}Expand description
Full, input based attribute.
Fields§
§id: String§name: String§data_type: String§unit: Option<String>§optional: boolImplementations§
Source§impl ValidatedSourceAttribute
impl ValidatedSourceAttribute
pub fn validate_attributes( source_attributes: Vec<SourceAttribute>, ) -> Result<Vec<ValidatedSourceAttribute>, Error>
Trait Implementations§
Source§impl Clone for ValidatedSourceAttribute
impl Clone for ValidatedSourceAttribute
Source§fn clone(&self) -> ValidatedSourceAttribute
fn clone(&self) -> ValidatedSourceAttribute
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 ValidatedSourceAttribute
impl Debug for ValidatedSourceAttribute
Source§impl<'de> Deserialize<'de> for ValidatedSourceAttribute
impl<'de> Deserialize<'de> for ValidatedSourceAttribute
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 PartialEq for ValidatedSourceAttribute
impl PartialEq for ValidatedSourceAttribute
Source§impl Serialize for ValidatedSourceAttribute
impl Serialize for ValidatedSourceAttribute
Auto Trait Implementations§
impl Freeze for ValidatedSourceAttribute
impl RefUnwindSafe for ValidatedSourceAttribute
impl Send for ValidatedSourceAttribute
impl Sync for ValidatedSourceAttribute
impl Unpin for ValidatedSourceAttribute
impl UnwindSafe for ValidatedSourceAttribute
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