pub struct EnumeratedValue {
pub id: String,
pub label: LocalizedText,
}Expand description
One value a field accepts, as the workflow names it to a user.
Fields§
§id: StringStable identifier, as the domain stores it.
label: LocalizedTextWhat a person calls it, in the languages the workflow answers in.
Implementations§
Source§impl EnumeratedValue
impl EnumeratedValue
Sourcepub fn new(id: impl Into<String>, label: LocalizedText) -> Self
pub fn new(id: impl Into<String>, label: LocalizedText) -> Self
A value with an id and a label.
Trait Implementations§
Source§impl Clone for EnumeratedValue
impl Clone for EnumeratedValue
Source§impl Debug for EnumeratedValue
impl Debug for EnumeratedValue
Source§impl<'de> Deserialize<'de> for EnumeratedValue
impl<'de> Deserialize<'de> for EnumeratedValue
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 EnumeratedValue
Source§impl PartialEq for EnumeratedValue
impl PartialEq for EnumeratedValue
Source§impl Serialize for EnumeratedValue
impl Serialize for EnumeratedValue
impl StructuralPartialEq for EnumeratedValue
Auto Trait Implementations§
impl Freeze for EnumeratedValue
impl RefUnwindSafe for EnumeratedValue
impl Send for EnumeratedValue
impl Sync for EnumeratedValue
impl Unpin for EnumeratedValue
impl UnsafeUnpin for EnumeratedValue
impl UnwindSafe for EnumeratedValue
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.