[][src]Struct libstripe::resources::core::file::File

pub struct File {
    pub id: String,
    pub object: Object,
    pub created: i64,
    pub filename: String,
    pub links: List<FileLink>,
    pub purpose: FilePurpose,
    pub size: i64,
    pub title: Option<String>,
    pub file_type: FileType,
    pub url: Option<String>,
}

Fields

id: Stringobject: Objectcreated: i64filename: Stringlinks: List<FileLink>purpose: FilePurposesize: i64title: Option<String>file_type: FileTypeurl: Option<String>

Methods

impl File[src]

pub fn create<B: Serialize, P: AsRef<Path>>(
    client: &Client,
    path: P,
    purpose: FilePurpose,
    file_link: B
) -> Result<Self>
[src]

pub fn retrieve(client: &Client, id: &str) -> Result<Self>[src]

pub fn list<B: Serialize>(client: &Client, param: B) -> Result<List<Self>>[src]

Trait Implementations

impl PartialEq<File> for File[src]

impl Debug for File[src]

impl Serialize for File[src]

impl<'de> Deserialize<'de> for File[src]

Auto Trait Implementations

impl Send for File

impl Sync for File

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err