pub struct Record<'a, P> {
pub namespace: &'a str,
pub database: &'a str,
pub access: &'a str,
pub params: P,
}
Expand description
Credentials for the record user
Fields§
§namespace: &'a str
The namespace the user has access to
database: &'a str
The database the user has access to
access: &'a str
The access method to use for signin and signup
params: P
The additional params to use
Trait Implementations§
impl<T, P> Credentials<T, Jwt> for Record<'_, P>where
P: Serialize,
Auto Trait Implementations§
impl<'a, P> Freeze for Record<'a, P>where
P: Freeze,
impl<'a, P> RefUnwindSafe for Record<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for Record<'a, P>where
P: Send,
impl<'a, P> Sync for Record<'a, P>where
P: Sync,
impl<'a, P> Unpin for Record<'a, P>where
P: Unpin,
impl<'a, P> UnwindSafe for Record<'a, P>where
P: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more