pub struct CreateClient {
pub name: String,
pub description: Option<String>,
pub profile: ApiClientProfile,
pub version: Option<u32>,
/* private fields */
}
Expand description
Create a new api client.
This requires authentication.
Makes a request to POST /client
Fields§
§name: String
§description: Option<String>
§profile: ApiClientProfile
§version: Option<u32>
Implementations§
Source§impl CreateClient
impl CreateClient
Sourcepub async fn send(&self) -> ApiClientResponse
pub async fn send(&self) -> ApiClientResponse
Send the request.
Trait Implementations§
Source§impl Clone for CreateClient
impl Clone for CreateClient
Source§fn clone(&self) -> CreateClient
fn clone(&self) -> CreateClient
Returns a copy 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 moreSource§impl Debug for CreateClient
impl Debug for CreateClient
Source§impl Default for CreateClient
impl Default for CreateClient
Source§fn default() -> CreateClient
fn default() -> CreateClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateClient
impl !RefUnwindSafe for CreateClient
impl !Send for CreateClient
impl !Sync for CreateClient
impl Unpin for CreateClient
impl !UnwindSafe for CreateClient
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