[][src]Struct onedrive_api::UploadSession

pub struct UploadSession { /* fields omitted */ }

An upload session for resumable file uploading process.

See also

OneDrive::new_upload_session

Microsoft Docs

Methods

impl UploadSession[src]

pub fn upload_url(&self) -> &str[src]

The URL endpoint accepting PUT requests.

Directly PUT to this URL is NOT encouraged.

It is preferred to use OneDrive::get_upload_session to get the upload session and then OneDrive::upload_to_session to perform upload.

See also

Microsoft Docs

pub fn next_expected_ranges(&self) -> &[ExpectRange][src]

Get a collection of byte ranges that the server is missing for the file.

Used for determine what to upload when resuming a session.

See also

Microsoft Docs

pub fn expiration_date_time(&self) -> &TimestampString[src]

Get the date and time in UTC that the upload session will expire.

The complete file must be uploaded before this expiration time is reached.

See also

Microsoft Docs

Trait Implementations

impl Debug for UploadSession[src]

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

Auto Trait Implementations

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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