pub enum DefaultedFormOperations {
Default,
Custom(Vec<FormOperation>),
}Expand description
A default or custom set of Form operations.
A Form has a different default op field depending on its context. With this, it is possible
to specify a default operation independently from the context.
Note: an instance of this enum should not be serialized if it is a Default value.
Variants§
Default
The default operation depending on the context.
Custom(Vec<FormOperation>)
A custom set of operations.
Implementations§
Source§impl DefaultedFormOperations
impl DefaultedFormOperations
Sourcepub const fn is_default(&self) -> bool
pub const fn is_default(&self) -> bool
Returns true if the operation is a Default value.
Trait Implementations§
Source§impl Clone for DefaultedFormOperations
impl Clone for DefaultedFormOperations
Source§fn clone(&self) -> DefaultedFormOperations
fn clone(&self) -> DefaultedFormOperations
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 DefaultedFormOperations
impl Debug for DefaultedFormOperations
Source§impl Default for DefaultedFormOperations
impl Default for DefaultedFormOperations
Source§fn default() -> DefaultedFormOperations
fn default() -> DefaultedFormOperations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DefaultedFormOperations
impl<'de> Deserialize<'de> for DefaultedFormOperations
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 Hash for DefaultedFormOperations
impl Hash for DefaultedFormOperations
Source§impl PartialEq for DefaultedFormOperations
impl PartialEq for DefaultedFormOperations
Source§impl Serialize for DefaultedFormOperations
impl Serialize for DefaultedFormOperations
impl Eq for DefaultedFormOperations
impl StructuralPartialEq for DefaultedFormOperations
Auto Trait Implementations§
impl Freeze for DefaultedFormOperations
impl RefUnwindSafe for DefaultedFormOperations
impl Send for DefaultedFormOperations
impl Sync for DefaultedFormOperations
impl Unpin for DefaultedFormOperations
impl UnwindSafe for DefaultedFormOperations
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<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.