pub struct FieldHooks {
pub validate: Option<String>,
pub transform: Option<String>,
pub choices: Option<String>,
pub preview: Option<String>,
}Expand description
The hooks a field names.
Fields§
§validate: Option<String>§transform: Option<String>§choices: Option<String>§preview: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for FieldHooks
impl Clone for FieldHooks
Source§fn clone(&self) -> FieldHooks
fn clone(&self) -> FieldHooks
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 FieldHooks
impl Debug for FieldHooks
Source§impl Default for FieldHooks
impl Default for FieldHooks
Source§fn default() -> FieldHooks
fn default() -> FieldHooks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldHookswhere
FieldHooks: Default,
impl<'de> Deserialize<'de> for FieldHookswhere
FieldHooks: Default,
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 PartialEq for FieldHooks
impl PartialEq for FieldHooks
Source§impl Serialize for FieldHooks
impl Serialize for FieldHooks
impl StructuralPartialEq for FieldHooks
Auto Trait Implementations§
impl Freeze for FieldHooks
impl RefUnwindSafe for FieldHooks
impl Send for FieldHooks
impl Sync for FieldHooks
impl Unpin for FieldHooks
impl UnsafeUnpin for FieldHooks
impl UnwindSafe for FieldHooks
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