#[non_exhaustive]pub enum ValueShape {
Text {
written: bool,
},
Enum {
values: Vec<String>,
},
Integer,
Number,
Bool,
Date {
direction: DateDirection,
},
Money,
Record {
workflow: WorkflowKey,
},
Structured,
}Expand description
The shape a model gives an argument’s value, derived from its JSON Schema.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Text. A user-sourced text is pointed at in the user’s words unless written.
Enum
One of a closed set of values.
Integer
A whole number.
Number
A number.
Bool
True or false.
Date
A calendar date, given as a date expression code evaluates.
Fields
§
direction: DateDirectionWhich way a date without a year points.
Money
An amount of money, given as a decimal and a currency code evaluates.
Record
A record of a workflow, chosen among the records in view.
Fields
§
workflow: WorkflowKeyThe workflow the record belongs to.
Structured
Anything else, written against its own schema.
Trait Implementations§
Source§impl Clone for ValueShape
impl Clone for ValueShape
Source§impl Debug for ValueShape
impl Debug for ValueShape
Source§impl<'de> Deserialize<'de> for ValueShape
impl<'de> Deserialize<'de> for ValueShape
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 ValueShape
Source§impl PartialEq for ValueShape
impl PartialEq for ValueShape
Source§impl Serialize for ValueShape
impl Serialize for ValueShape
impl StructuralPartialEq for ValueShape
Auto Trait Implementations§
impl Freeze for ValueShape
impl RefUnwindSafe for ValueShape
impl Send for ValueShape
impl Sync for ValueShape
impl Unpin for ValueShape
impl UnsafeUnpin for ValueShape
impl UnwindSafe for ValueShape
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.