pub struct PutSetting<'a> { /* private fields */ }Expand description
Builder for Client::put_setting
Implementations§
Source§impl<'a> PutSetting<'a>
impl<'a> PutSetting<'a>
pub fn new(client: &'a Client) -> Self
pub fn key<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<PutSettingResponse>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<PutSettingResponse>, Error<()>>
Sends a PUT request to /api/admin/settings/{key}/
Trait Implementations§
Source§impl<'a> Clone for PutSetting<'a>
impl<'a> Clone for PutSetting<'a>
Source§fn clone(&self) -> PutSetting<'a>
fn clone(&self) -> PutSetting<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'a> Freeze for PutSetting<'a>
impl<'a> !RefUnwindSafe for PutSetting<'a>
impl<'a> Send for PutSetting<'a>
impl<'a> Sync for PutSetting<'a>
impl<'a> Unpin for PutSetting<'a>
impl<'a> UnsafeUnpin for PutSetting<'a>
impl<'a> !UnwindSafe for PutSetting<'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