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§const fn clone_from(&mut self, source: &Self)
const 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<DefaultedFormOperations, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<DefaultedFormOperations, <D as Deserializer<'de>>::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§fn eq(&self, other: &DefaultedFormOperations) -> bool
fn eq(&self, other: &DefaultedFormOperations) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DefaultedFormOperations
impl Serialize for DefaultedFormOperations
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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