pub struct PgKey<D>where
D: PgKeyDomain,{
pub id: i32,
pub user_id: i32,
pub key: String,
pub uses: i16,
pub domains: Json<Vec<D>>,
}
Fields§
§id: i32
§user_id: i32
§key: String
§uses: i16
§domains: Json<Vec<D>>
Trait Implementations§
Source§impl<D> ApiKey for PgKey<D>where
D: PgKeyDomain,
impl<D> ApiKey for PgKey<D>where
D: PgKeyDomain,
Auto Trait Implementations§
impl<D> Freeze for PgKey<D>
impl<D> RefUnwindSafe for PgKey<D>where
D: RefUnwindSafe,
impl<D> Send for PgKey<D>
impl<D> Sync for PgKey<D>
impl<D> Unpin for PgKey<D>
impl<D> UnwindSafe for PgKey<D>where
D: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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