[][src]Struct ass_rs::Account

pub struct Account {
    pub name: String,
    pub apikey: String,
    // some fields omitted
}

Fields

name: Stringapikey: String

Methods

impl Account[src]

pub fn create<T: Into<String>>(
    url: T,
    name: T,
    apikey: T
) -> Result<Self, Error>
[src]

pub fn url(&self) -> Url[src]

pub fn url_string(&self) -> String[src]

pub fn get_headers(&self) -> Result<HeaderMap, Error>[src]

pub fn sign_url(&self, url: Url) -> Result<Url, Error>[src]

pub fn from_file<T: Into<PathBuf>>(file: T) -> Result<Self, AssError>[src]

pub fn search_files(
    &self,
    queries: &[(&str, &str)]
) -> Result<Vec<AssData>, Error>
[src]

pub fn upload_file<T: Into<PathBuf>>(
    &self,
    path: T,
    destination: &str
) -> Result<AssData, Error>
[src]

pub fn get_file_url(&self, path: &str) -> Result<String, Error>[src]

pub fn upload_image<T: Into<PathBuf>>(&self, path: T) -> Result<AssData, Error>[src]

pub fn get_image_data(&self, image_id: u64) -> Result<AssData, Error>[src]

pub fn get_image_url(&self, id: u64) -> Result<String, Error>[src]

Trait Implementations

impl Debug for Account[src]

impl Serialize for Account[src]

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

Auto Trait Implementations

impl Send for Account

impl Sync for Account

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T