pub struct CreateClientBuilder {
name: Option<String>,
description: Option<Option<String>>,
profile: Option<ApiClientProfile>,
version: Option<Option<u32>>,
/* private fields */
}
Expand description
Builder for CreateClient
.
Fields§
§name: Option<String>
§description: Option<Option<String>>
§profile: Option<ApiClientProfile>
§version: Option<Option<u32>>
Implementations§
Source§impl CreateClientBuilder
impl CreateClientBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn profile<VALUE: Into<ApiClientProfile>>( &mut self, value: VALUE, ) -> &mut Self
pub fn version<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateClient, BuilderError>
pub fn build(&self) -> Result<CreateClient, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl CreateClientBuilder
impl CreateClientBuilder
pub async fn send(&self) -> ApiClientResponse
Trait Implementations§
Source§impl Clone for CreateClientBuilder
impl Clone for CreateClientBuilder
Source§fn clone(&self) -> CreateClientBuilder
fn clone(&self) -> CreateClientBuilder
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 moreAuto Trait Implementations§
impl Freeze for CreateClientBuilder
impl !RefUnwindSafe for CreateClientBuilder
impl !Send for CreateClientBuilder
impl !Sync for CreateClientBuilder
impl Unpin for CreateClientBuilder
impl !UnwindSafe for CreateClientBuilder
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