[−][src]Struct stripe::FileLink
The resource representing a Stripe "FileLink".
For more details see https://stripe.com/docs/api/file_links/object.
Fields
id: FileLinkIdUnique identifier for the object.
created: TimestampTime at which the object was created.
Measured in seconds since the Unix epoch.
expired: boolWhether this link is already expired.
expires_at: Option<Timestamp>Time at which the link expires.
file: Expandable<File>The file object this link points to.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata: MetadataSet 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.
url: Option<String>The publicly accessible URL to download the file.
Implementations
impl FileLink[src]
pub fn list(client: &Client, params: ListFileLinks) -> Response<List<FileLink>>[src]
Returns a list of file links.
pub fn create(client: &Client, params: CreateFileLink) -> Response<FileLink>[src]
Creates a new file link object.
pub fn retrieve(
client: &Client,
id: &FileLinkId,
expand: &[&str]
) -> Response<FileLink>[src]
client: &Client,
id: &FileLinkId,
expand: &[&str]
) -> Response<FileLink>
Retrieves the file link with the given ID.
pub fn update(
client: &Client,
id: &FileLinkId,
params: UpdateFileLink
) -> Response<FileLink>[src]
client: &Client,
id: &FileLinkId,
params: UpdateFileLink
) -> Response<FileLink>
Updates an existing file link object.
Expired links can no longer be updated.
Trait Implementations
impl Clone for FileLink[src]
impl Debug for FileLink[src]
impl<'de> Deserialize<'de> for FileLink[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Object for FileLink[src]
type Id = FileLinkId
The canonical id type for this object.
fn id(&self) -> Self::Id[src]
fn object(&self) -> &'static str[src]
impl Serialize for FileLink[src]
Auto Trait Implementations
impl RefUnwindSafe for FileLink
impl Send for FileLink
impl Sync for FileLink
impl Unpin for FileLink
impl UnwindSafe for FileLink
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,