pub struct UserClient {
inner: ResourceClient<User>,
}Expand description
Client for interacting with the User actor.
Fields§
§inner: ResourceClient<User>Implementations§
Source§impl UserClient
impl UserClient
pub async fn create_user(&self, params: UserCreate) -> Result<UserId, UserError>
pub async fn update_user( &self, id: UserId, update: UserUpdate, ) -> Result<User, UserError>
Trait Implementations§
Source§impl ActorClient<User> for UserClient
impl ActorClient<User> for UserClient
Source§fn map_error(e: FrameworkError) -> Self::Error
fn map_error(e: FrameworkError) -> Self::Error
Map framework errors to the specific resource error type.
Source§impl Clone for UserClient
impl Clone for UserClient
Source§fn clone(&self) -> UserClient
fn clone(&self) -> UserClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UserClient
impl RefUnwindSafe for UserClient
impl Send for UserClient
impl Sync for UserClient
impl Unpin for UserClient
impl UnwindSafe for UserClient
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