pub struct AdapterRecord { /* private fields */ }Expand description
Raw logical fields and mapped storage fields, before adapter output policies run.
Implementations§
Source§impl AdapterRecord
impl AdapterRecord
Sourcepub fn new(core: FieldMap, storage: FieldMap) -> Self
pub fn new(core: FieldMap, storage: FieldMap) -> Self
Preserve unmapped core fields and defer configured policies to the batch boundary.
Sourcepub fn map_storage_fields(
&mut self,
fields: &UserConfig,
capabilities: FieldOutputCapabilities,
map: impl Fn(&str, &UserFieldConfig) -> AuthResult<Option<Value>>,
) -> AuthResult<()>
pub fn map_storage_fields( &mut self, fields: &UserConfig, capabilities: FieldOutputCapabilities, map: impl Fn(&str, &UserFieldConfig) -> AuthResult<Option<Value>>, ) -> AuthResult<()>
Restore raw adapter values before output policies. None retains the extracted value.
The restored values bypass the model’s JSON conversion before callbacks.
Sourcepub fn map_native_fields(
&mut self,
fields: &UserConfig,
map: impl Fn(&str) -> AuthResult<Option<Value>>,
) -> AuthResult<()>
pub fn map_native_fields( &mut self, fields: &UserConfig, map: impl Fn(&str) -> AuthResult<Option<Value>>, ) -> AuthResult<()>
Restore unconfigured core values without applying application field policies.
Auto Trait Implementations§
impl Freeze for AdapterRecord
impl RefUnwindSafe for AdapterRecord
impl Send for AdapterRecord
impl Sync for AdapterRecord
impl Unpin for AdapterRecord
impl UnsafeUnpin for AdapterRecord
impl UnwindSafe for AdapterRecord
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