pub enum TypeSpecification {
Show 14 variants
Boolean {
help: String,
},
Measure {
minimum: Option<NamedBound>,
maximum: Option<NamedBound>,
decimals: Option<u8>,
units: Vec<MeasureUnit>,
traits: Vec<MeasureTrait>,
decomposition: Option<BTreeMap<String, i32>>,
help: String,
},
Number {
minimum: Option<String>,
maximum: Option<String>,
decimals: Option<u8>,
help: String,
},
NumberRange {
lower: Option<String>,
upper: Option<String>,
minimum: Option<String>,
maximum: Option<String>,
help: String,
},
Ratio {
minimum: Option<String>,
maximum: Option<String>,
decimals: Option<u8>,
units: Vec<RatioUnit>,
help: String,
},
RatioRange {
lower: Option<String>,
upper: Option<String>,
minimum: Option<String>,
maximum: Option<String>,
units: Vec<RatioUnit>,
help: String,
},
Text {
length: Option<usize>,
options: Vec<String>,
help: String,
},
Date {
minimum: Option<DateTimeValue>,
maximum: Option<DateTimeValue>,
help: String,
},
DateRange {
lower: Option<DateTimeValue>,
upper: Option<DateTimeValue>,
minimum: Option<NamedBound>,
maximum: Option<NamedBound>,
help: String,
},
Time {
minimum: Option<TimeValue>,
maximum: Option<TimeValue>,
help: String,
},
TimeRange {
lower: Option<TimeValue>,
upper: Option<TimeValue>,
minimum: Option<NamedBound>,
maximum: Option<NamedBound>,
help: String,
},
MeasureRange {
lower: Option<NamedBound>,
upper: Option<NamedBound>,
minimum: Option<NamedBound>,
maximum: Option<NamedBound>,
units: Vec<MeasureUnit>,
decomposition: Option<BTreeMap<String, i32>>,
help: String,
},
Veto {
message: Option<String>,
},
Undetermined,
}Variants§
Boolean
Measure
Fields
§
minimum: Option<NamedBound>§
maximum: Option<NamedBound>§
units: Vec<MeasureUnit>§
traits: Vec<MeasureTrait>Number
NumberRange
Fields
Ratio
Fields
RatioRange
Fields
Text
Date
DateRange
Fields
§
lower: Option<DateTimeValue>§
upper: Option<DateTimeValue>§
minimum: Option<NamedBound>§
maximum: Option<NamedBound>Time
TimeRange
MeasureRange
Fields
§
lower: Option<NamedBound>§
upper: Option<NamedBound>§
minimum: Option<NamedBound>§
maximum: Option<NamedBound>§
units: Vec<MeasureUnit>Veto
Undetermined
Trait Implementations§
Source§impl Clone for TypeSpecification
impl Clone for TypeSpecification
Source§fn clone(&self) -> TypeSpecification
fn clone(&self) -> TypeSpecification
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 TypeSpecification
impl Debug for TypeSpecification
Source§impl<'de> Deserialize<'de> for TypeSpecification
impl<'de> Deserialize<'de> for TypeSpecification
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
impl Eq for TypeSpecification
Source§impl From<&TypeSpecification> for TypeSpecification
impl From<&TypeSpecification> for TypeSpecification
Source§fn from(spec: &DomainTypeSpecification) -> Self
fn from(spec: &DomainTypeSpecification) -> Self
Converts to this type from the input type.
Source§impl Hash for TypeSpecification
impl Hash for TypeSpecification
Source§impl PartialEq for TypeSpecification
impl PartialEq for TypeSpecification
Source§impl Serialize for TypeSpecification
impl Serialize for TypeSpecification
impl StructuralPartialEq for TypeSpecification
Auto Trait Implementations§
impl Freeze for TypeSpecification
impl RefUnwindSafe for TypeSpecification
impl Send for TypeSpecification
impl Sync for TypeSpecification
impl Unpin for TypeSpecification
impl UnsafeUnpin for TypeSpecification
impl UnwindSafe for TypeSpecification
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.