pub struct PostApiKey<'a> { /* private fields */ }
Expand description
Builder for Client::post_api_key
Implementations§
Source§impl<'a> PostApiKey<'a>
impl<'a> PostApiKey<'a>
pub fn new(client: &'a Client) -> 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<NewApiKeyResponse>, Error<ErrorResponse>>
pub async fn send( self, ) -> Result<ResponseValue<NewApiKeyResponse>, Error<ErrorResponse>>
Sends a POST
request to /v0/api_keys
Trait Implementations§
Source§impl<'a> Clone for PostApiKey<'a>
impl<'a> Clone for PostApiKey<'a>
Source§fn clone(&self) -> PostApiKey<'a>
fn clone(&self) -> PostApiKey<'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 PostApiKey<'a>
impl<'a> !RefUnwindSafe for PostApiKey<'a>
impl<'a> Send for PostApiKey<'a>
impl<'a> Sync for PostApiKey<'a>
impl<'a> Unpin for PostApiKey<'a>
impl<'a> !UnwindSafe for PostApiKey<'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