Struct nandoize::mapping_context::ArgumentMappingContext
source · pub(crate) struct ArgumentMappingContext {
pub mapping: Vec<ArgumentMapping>,
pub reference_map: HashMap<String, ReferenceArgMappingContext>,
pub function_kind: NandoKind,
}Expand description
Parameter mapping context.
For each function being nando-ized, this struct maintains the mapping between the arguments of
the function that is being wrapped with a transactional context and the parameters of the
nanotransaction wrapper. For non-reference types, we effectively map via passthrough using the
ArgumentMapping::Value enum.
Fields§
§mapping: Vec<ArgumentMapping>Order-preserving argument mapping.
reference_map: HashMap<String, ReferenceArgMappingContext>§function_kind: NandoKindImplementations§
source§impl ArgumentMappingContext
impl ArgumentMappingContext
pub(crate) fn new() -> Self
pub fn is_read_only(&self) -> bool
Trait Implementations§
source§impl Clone for ArgumentMappingContext
impl Clone for ArgumentMappingContext
source§fn clone(&self) -> ArgumentMappingContext
fn clone(&self) -> ArgumentMappingContext
Returns a copy 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 ArgumentMappingContext
impl Debug for ArgumentMappingContext
source§impl From<ArgumentMappingContext> for ResolverMappingContext
impl From<ArgumentMappingContext> for ResolverMappingContext
source§fn from(value: ArgumentMappingContext) -> Self
fn from(value: ArgumentMappingContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ArgumentMappingContext
impl !Send for ArgumentMappingContext
impl !Sync for ArgumentMappingContext
impl Unpin for ArgumentMappingContext
impl UnwindSafe for ArgumentMappingContext
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