pub struct File {
pub id: FileId,
pub created: Timestamp,
pub expires_at: Option<Timestamp>,
pub filename: Option<String>,
pub links: List<FileLink>,
pub purpose: FilePurpose,
pub size: u64,
pub title: Option<String>,
pub type_: Option<String>,
pub url: Option<String>,
}
Expand description
The resource representing a Stripe “File”.
For more details see https://stripe.com/docs/api/files/object
Fields
id: FileId
Unique identifier for the object.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
expires_at: Option<Timestamp>
The time at which the file expires and is no longer available in epoch seconds.
filename: Option<String>
A filename for the file, suitable for saving to a filesystem.
links: List<FileLink>
A list of file links that point at this file.
purpose: FilePurpose
The purpose of the uploaded file.
size: u64
The size in bytes of the file object.
title: Option<String>
A user friendly title for the document.
type_: Option<String>
The type of the file returned (e.g., csv
, pdf
, jpg
, or png
).
url: Option<String>
The URL from which the file can be downloaded using your live secret API key.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more