#[non_exhaustive]#[repr(C)]pub struct FieldVTable {
pub skip_serializing_if: Option<SkipSerializingIfFn>,
pub default_fn: Option<DefaultInPlaceFn>,
}Expand description
Vtable for field-specific operations
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.skip_serializing_if: Option<SkipSerializingIfFn>Function to determine if serialization should be skipped for this field
default_fn: Option<DefaultInPlaceFn>Function to get the default value for this field
Implementations§
Source§impl FieldVTable
impl FieldVTable
Sourcepub const fn builder() -> FieldVTableBuilder
pub const fn builder() -> FieldVTableBuilder
Returns a builder for FieldVTable
Trait Implementations§
Source§impl Clone for FieldVTable
impl Clone for FieldVTable
Source§fn clone(&self) -> FieldVTable
fn clone(&self) -> FieldVTable
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 FieldVTable
impl Debug for FieldVTable
Source§impl Hash for FieldVTable
impl Hash for FieldVTable
Source§impl PartialEq for FieldVTable
impl PartialEq for FieldVTable
impl Copy for FieldVTable
impl Eq for FieldVTable
impl StructuralPartialEq for FieldVTable
Auto Trait Implementations§
impl Freeze for FieldVTable
impl RefUnwindSafe for FieldVTable
impl Send for FieldVTable
impl Sync for FieldVTable
impl Unpin for FieldVTable
impl UnwindSafe for FieldVTable
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