pub struct PatchUser<'a> { /* private fields */ }Expand description
Builder for Client::patch_user
Implementations§
Source§impl<'a> PatchUser<'a>
impl<'a> PatchUser<'a>
pub fn new(client: &'a Client) -> Self
pub fn id<V>(self, value: V) -> Self
pub fn body<V>(self, value: V) -> Self
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(
self,
) -> Result<ResponseValue<PatchUserResponse>, Error<PatchUserResponse>>
pub async fn send( self, ) -> Result<ResponseValue<PatchUserResponse>, Error<PatchUserResponse>>
Sends a PATCH request to /api/admin/users/{id}/
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PatchUser<'a>
impl<'a> !RefUnwindSafe for PatchUser<'a>
impl<'a> Send for PatchUser<'a>
impl<'a> Sync for PatchUser<'a>
impl<'a> Unpin for PatchUser<'a>
impl<'a> UnsafeUnpin for PatchUser<'a>
impl<'a> !UnwindSafe for PatchUser<'a>
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