#[non_exhaustive]pub struct CreateApiKeyInput {
pub api_id: Option<String>,
pub description: Option<String>,
pub expires: Option<i64>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.api_id: Option<String>
The ID for your GraphQL API.
description: Option<String>
A description of the purpose of the API key.
expires: Option<i64>
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
Implementations§
source§impl CreateApiKeyInput
impl CreateApiKeyInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the purpose of the API key.
source§impl CreateApiKeyInput
impl CreateApiKeyInput
sourcepub fn builder() -> CreateApiKeyInputBuilder
pub fn builder() -> CreateApiKeyInputBuilder
Creates a new builder-style object to manufacture CreateApiKeyInput
.
Trait Implementations§
source§impl Clone for CreateApiKeyInput
impl Clone for CreateApiKeyInput
source§fn clone(&self) -> CreateApiKeyInput
fn clone(&self) -> CreateApiKeyInput
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 CreateApiKeyInput
impl Debug for CreateApiKeyInput
source§impl PartialEq for CreateApiKeyInput
impl PartialEq for CreateApiKeyInput
source§fn eq(&self, other: &CreateApiKeyInput) -> bool
fn eq(&self, other: &CreateApiKeyInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateApiKeyInput
Auto Trait Implementations§
impl RefUnwindSafe for CreateApiKeyInput
impl Send for CreateApiKeyInput
impl Sync for CreateApiKeyInput
impl Unpin for CreateApiKeyInput
impl UnwindSafe for CreateApiKeyInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.