pub struct ScoreConfigsUpdate<'a> { /* private fields */ }Expand description
Builder for Client::score_configs_update
Implementations§
Source§impl<'a> ScoreConfigsUpdate<'a>
impl<'a> ScoreConfigsUpdate<'a>
pub fn new(client: &'a Client) -> Self
pub fn config_id<V>(self, value: V) -> Self
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<UpdateScoreConfigRequest>,
<V as TryInto<UpdateScoreConfigRequest>>::Error: Display,
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<ScoreConfig>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<ScoreConfig>, Error<()>>
Sends a PATCH request to /api/public/score-configs/{configId}
Trait Implementations§
Source§impl<'a> Clone for ScoreConfigsUpdate<'a>
impl<'a> Clone for ScoreConfigsUpdate<'a>
Source§fn clone(&self) -> ScoreConfigsUpdate<'a>
fn clone(&self) -> ScoreConfigsUpdate<'a>
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<'a> Freeze for ScoreConfigsUpdate<'a>
impl<'a> !RefUnwindSafe for ScoreConfigsUpdate<'a>
impl<'a> Send for ScoreConfigsUpdate<'a>
impl<'a> Sync for ScoreConfigsUpdate<'a>
impl<'a> Unpin for ScoreConfigsUpdate<'a>
impl<'a> UnsafeUnpin for ScoreConfigsUpdate<'a>
impl<'a> !UnwindSafe for ScoreConfigsUpdate<'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