pub struct UserView {
pub user: User,
pub row: Row,
}Expand description
A user row as plugins see it: core fields typed, everything else in row.
Fields§
§user: User§row: RowImplementations§
Source§impl UserView
impl UserView
pub fn from_row(row: Row) -> Result<Self, DecodeError>
Sourcepub fn fields<F: Fields>(&self) -> Result<F, DecodeError>
pub fn fields<F: Fields>(&self) -> Result<F, DecodeError>
Decodes a plugin’s or the app’s columns from this row.
Sourcepub fn to_json(&self) -> Map<String, Value>
pub fn to_json(&self) -> Map<String, Value>
What clients see: every returned column, camelCase.
Sourcepub fn security_stamp(&self) -> i64
pub fn security_stamp(&self) -> i64
The user’s security stamp (User::SECURITY_STAMP) when this row was read. A row
without the column (an old cookie cache) reads as 0.
Trait Implementations§
Auto Trait Implementations§
impl Forget for UserView
impl Freeze for UserView
impl Move for UserView
impl RefUnwindSafe for UserView
impl Send for UserView
impl Sync for UserView
impl Unpin for UserView
impl UnsafeUnpin for UserView
impl UnwindSafe for UserView
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