pub struct AttributeSpec {
pub name: String,
pub label: Option<String>,
pub attr_type: Option<String>,
pub required: bool,
pub format: Option<String>,
pub unit: Option<String>,
pub cardinality: Option<String>,
pub entry_values: Option<Vec<String>>,
}Fields§
§name: String§label: Option<String>§attr_type: Option<String>§required: bool§format: Option<String>§unit: Option<String>§cardinality: Option<String>§entry_values: Option<Vec<String>>Trait Implementations§
Source§impl Clone for AttributeSpec
impl Clone for AttributeSpec
Source§fn clone(&self) -> AttributeSpec
fn clone(&self) -> AttributeSpec
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 AttributeSpec
impl Debug for AttributeSpec
Auto Trait Implementations§
impl Freeze for AttributeSpec
impl RefUnwindSafe for AttributeSpec
impl Send for AttributeSpec
impl Sync for AttributeSpec
impl Unpin for AttributeSpec
impl UnsafeUnpin for AttributeSpec
impl UnwindSafe for AttributeSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more