pub struct CreateAdminApiKeyRequestArgs { /* private fields */ }Available on crate feature
administration-types only.Expand description
Builder for CreateAdminApiKeyRequest.
Implementations§
Source§impl CreateAdminApiKeyRequestArgs
impl CreateAdminApiKeyRequestArgs
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the API key being created.
Sourcepub fn build(&self) -> Result<CreateAdminApiKeyRequest, OpenAIError>
pub fn build(&self) -> Result<CreateAdminApiKeyRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateAdminApiKeyRequestArgs
impl Clone for CreateAdminApiKeyRequestArgs
Source§fn clone(&self) -> CreateAdminApiKeyRequestArgs
fn clone(&self) -> CreateAdminApiKeyRequestArgs
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 moreSource§impl Debug for CreateAdminApiKeyRequestArgs
impl Debug for CreateAdminApiKeyRequestArgs
Auto Trait Implementations§
impl Freeze for CreateAdminApiKeyRequestArgs
impl RefUnwindSafe for CreateAdminApiKeyRequestArgs
impl Send for CreateAdminApiKeyRequestArgs
impl Sync for CreateAdminApiKeyRequestArgs
impl Unpin for CreateAdminApiKeyRequestArgs
impl UnsafeUnpin for CreateAdminApiKeyRequestArgs
impl UnwindSafe for CreateAdminApiKeyRequestArgs
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