pub struct UpdateFileLink { /* private fields */ }
Expand description
Updates an existing file link object. Expired links can no longer be updated.
Implementations§
Source§impl UpdateFileLink
impl UpdateFileLink
Sourcepub fn new(link: impl Into<FileLinkId>) -> Self
pub fn new(link: impl Into<FileLinkId>) -> Self
Construct a new UpdateFileLink
.
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<UpdateFileLinkExpiresAt>) -> Self
pub fn expires_at(self, expires_at: impl Into<UpdateFileLinkExpiresAt>) -> Self
A future timestamp after which the link will no longer be usable, or now
to expire the link immediately.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Source§impl UpdateFileLink
impl UpdateFileLink
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 UpdateFileLink
impl Clone for UpdateFileLink
Source§fn clone(&self) -> UpdateFileLink
fn clone(&self) -> UpdateFileLink
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 UpdateFileLink
impl Debug for UpdateFileLink
Source§impl Serialize for UpdateFileLink
impl Serialize for UpdateFileLink
Source§impl StripeRequest for UpdateFileLink
impl StripeRequest for UpdateFileLink
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 UpdateFileLink
impl RefUnwindSafe for UpdateFileLink
impl Send for UpdateFileLink
impl Sync for UpdateFileLink
impl Unpin for UpdateFileLink
impl UnwindSafe for UpdateFileLink
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