[−][src]Struct stripe::File
The resource representing a Stripe "File".
For more details see https://stripe.com/docs/api/files/object.
Fields
id: FileIdUnique identifier for the object.
created: TimestampTime at which the object was created.
Measured in seconds since the Unix epoch.
filename: Option<String>A filename for the file, suitable for saving to a filesystem.
links: List<FileLink>purpose: FilePurposeThe purpose of the file.
Possible values are business_icon, business_logo, customer_signature, dispute_evidence, finance_report_run, identity_document, pci_document, sigma_scheduled_query, or tax_document_user_upload.
size: u64The 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
impl File[src]
pub fn list(client: &Client, params: ListFiles) -> Response<List<File>>[src]
Returns a list of the files that your account has access to.
The files are returned sorted by creation date, with the most recently created files appearing first.
pub fn retrieve(client: &Client, id: &FileId, expand: &[&str]) -> Response<File>[src]
Retrieves the details of an existing file object.
Supply the unique file ID from a file, and Stripe will return the corresponding file object.
Trait Implementations
impl Clone for File[src]
impl Debug for File[src]
impl<'de> Deserialize<'de> for File[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Object for File[src]
type Id = FileId
The canonical id type for this object.
fn id(&self) -> Self::Id[src]
fn object(&self) -> &'static str[src]
impl Serialize for File[src]
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
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>,