pub struct SessionFields(pub IndexMap<String, FieldConfig>);Expand description
Immutable instance policies: configuration first, registered plugins last.
Tuple Fields§
§0: IndexMap<String, FieldConfig>Implementations§
Source§impl SessionFields
impl SessionFields
pub fn defaults(&self, values: &mut FieldValues)
Sourcepub fn parse_update(
&self,
input: &IndexMap<String, JsValue>,
) -> Result<FieldValues, FieldInputError>
pub fn parse_update( &self, input: &IndexMap<String, JsValue>, ) -> Result<FieldValues, FieldInputError>
§Errors
Returns a validation error for disallowed fields or rejected field validators.
Sourcepub fn parse_create(
&self,
input: &IndexMap<String, JsValue>,
) -> Result<FieldValues, FieldInputError>
pub fn parse_create( &self, input: &IndexMap<String, JsValue>, ) -> Result<FieldValues, FieldInputError>
Parse application input before database hooks. Creation defaults and required fields apply here; adapter binding remains a separate phase.
Trait Implementations§
Source§impl Clone for SessionFields
impl Clone for SessionFields
Source§impl Debug for SessionFields
impl Debug for SessionFields
Auto Trait Implementations§
impl !RefUnwindSafe for SessionFields
impl !UnwindSafe for SessionFields
impl Freeze for SessionFields
impl Send for SessionFields
impl Sync for SessionFields
impl Unpin for SessionFields
impl UnsafeUnpin for SessionFields
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