pub struct CreateAppsSecret { /* private fields */ }
Expand description
Create or replace a secret in the secret store.
Implementations§
Source§impl CreateAppsSecret
impl CreateAppsSecret
Sourcepub fn new(
name: impl Into<String>,
payload: impl Into<String>,
scope: impl Into<CreateAppsSecretScope>,
) -> Self
pub fn new( name: impl Into<String>, payload: impl Into<String>, scope: impl Into<CreateAppsSecretScope>, ) -> Self
Construct a new CreateAppsSecret
.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn expires_at(self, expires_at: impl Into<Timestamp>) -> Self
pub fn expires_at(self, expires_at: impl Into<Timestamp>) -> Self
The Unix timestamp for the expiry time of the secret, after which the secret deletes.
Source§impl CreateAppsSecret
impl CreateAppsSecret
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateAppsSecret
impl Clone for CreateAppsSecret
Source§fn clone(&self) -> CreateAppsSecret
fn clone(&self) -> CreateAppsSecret
Returns a duplicate 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 CreateAppsSecret
impl Debug for CreateAppsSecret
Source§impl Serialize for CreateAppsSecret
impl Serialize for CreateAppsSecret
Source§impl StripeRequest for CreateAppsSecret
impl StripeRequest for CreateAppsSecret
Source§type Output = AppsSecret
type Output = AppsSecret
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateAppsSecret
impl RefUnwindSafe for CreateAppsSecret
impl Send for CreateAppsSecret
impl Sync for CreateAppsSecret
impl Unpin for CreateAppsSecret
impl UnwindSafe for CreateAppsSecret
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