#[non_exhaustive]pub struct UpdateApiKeyInputBuilder { /* private fields */ }
Expand description
A builder for UpdateApiKeyInput
.
Implementations§
source§impl UpdateApiKeyInputBuilder
impl UpdateApiKeyInputBuilder
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The ID for the GraphQL API.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the purpose of the API key.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the purpose of the API key.
sourcepub fn expires(self, input: i64) -> Self
pub fn expires(self, input: i64) -> Self
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
sourcepub fn set_expires(self, input: Option<i64>) -> Self
pub fn set_expires(self, input: Option<i64>) -> Self
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
sourcepub fn build(self) -> Result<UpdateApiKeyInput, BuildError>
pub fn build(self) -> Result<UpdateApiKeyInput, BuildError>
Consumes the builder and constructs a UpdateApiKeyInput
.
Trait Implementations§
source§impl Clone for UpdateApiKeyInputBuilder
impl Clone for UpdateApiKeyInputBuilder
source§fn clone(&self) -> UpdateApiKeyInputBuilder
fn clone(&self) -> UpdateApiKeyInputBuilder
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 UpdateApiKeyInputBuilder
impl Debug for UpdateApiKeyInputBuilder
source§impl Default for UpdateApiKeyInputBuilder
impl Default for UpdateApiKeyInputBuilder
source§fn default() -> UpdateApiKeyInputBuilder
fn default() -> UpdateApiKeyInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<UpdateApiKeyInputBuilder> for UpdateApiKeyInputBuilder
impl PartialEq<UpdateApiKeyInputBuilder> for UpdateApiKeyInputBuilder
source§fn eq(&self, other: &UpdateApiKeyInputBuilder) -> bool
fn eq(&self, other: &UpdateApiKeyInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateApiKeyInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for UpdateApiKeyInputBuilder
impl Send for UpdateApiKeyInputBuilder
impl Sync for UpdateApiKeyInputBuilder
impl Unpin for UpdateApiKeyInputBuilder
impl UnwindSafe for UpdateApiKeyInputBuilder
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