pub struct TypedHandlerSpec<S> {
pub source: SourceSpec,
pub key_resolution: KeyResolutionStrategy,
pub mappings: Vec<TypedFieldMapping<S>>,
pub conditions: Vec<Condition>,
pub emit: bool,
/* private fields */
}Fields§
§source: SourceSpec§key_resolution: KeyResolutionStrategy§mappings: Vec<TypedFieldMapping<S>>§conditions: Vec<Condition>§emit: boolImplementations§
Source§impl<S> TypedHandlerSpec<S>
impl<S> TypedHandlerSpec<S>
pub fn new( source: SourceSpec, key_resolution: KeyResolutionStrategy, mappings: Vec<TypedFieldMapping<S>>, emit: bool, ) -> Self
Sourcepub fn to_serializable(&self) -> SerializableHandlerSpec
pub fn to_serializable(&self) -> SerializableHandlerSpec
Convert to serializable format
Sourcepub fn from_serializable(spec: SerializableHandlerSpec) -> Self
pub fn from_serializable(spec: SerializableHandlerSpec) -> Self
Create from serializable format
Trait Implementations§
Source§impl<S: Clone> Clone for TypedHandlerSpec<S>
impl<S: Clone> Clone for TypedHandlerSpec<S>
Source§fn clone(&self) -> TypedHandlerSpec<S>
fn clone(&self) -> TypedHandlerSpec<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for TypedHandlerSpec<S>
impl<S> RefUnwindSafe for TypedHandlerSpec<S>where
S: RefUnwindSafe,
impl<S> Send for TypedHandlerSpec<S>where
S: Send,
impl<S> Sync for TypedHandlerSpec<S>where
S: Sync,
impl<S> Unpin for TypedHandlerSpec<S>where
S: Unpin,
impl<S> UnwindSafe for TypedHandlerSpec<S>where
S: UnwindSafe,
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