pub struct UserBmc;Implementations§
Source§impl UserBmc
impl UserBmc
pub async fn get<E>(ctx: &Ctx, mm: &ModelManager, id: i32) -> Result<E>where
E: UserBy,
pub async fn list( ctx: &Ctx, mm: &ModelManager, filters: Option<Vec<UserFilter>>, list_options: Option<ListOptions>, ) -> Result<Vec<User>>
pub async fn first_by_username<E>(
_ctx: &Ctx,
mm: &ModelManager,
username: &str,
) -> Result<Option<E>>where
E: UserBy,
pub async fn first_by_token<E>(
_ctx: &Ctx,
mm: &ModelManager,
token: &str,
) -> Result<Option<E>>where
E: UserBy,
pub async fn create( ctx: &Ctx, mm: &ModelManager, user_c: UserForCreate, ) -> Result<i32>
pub async fn update( ctx: &Ctx, mm: &ModelManager, id: i32, group_u: UserForUpdate, ) -> Result<()>
pub async fn update_pwd( ctx: &Ctx, mm: &ModelManager, id: i32, pwd_clear: &str, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for UserBmc
impl RefUnwindSafe for UserBmc
impl Send for UserBmc
impl Sync for UserBmc
impl Unpin for UserBmc
impl UnsafeUnpin for UserBmc
impl UnwindSafe for UserBmc
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