[][src]Struct s3handler::Handler

pub struct Handler<'a> {
    pub host: &'a str,
    pub access_key: &'a str,
    pub secret_key: &'a str,
    pub auth_type: AuthType,
    pub format: Format,
    pub url_style: UrlStyle,
    pub region: Option<String>,
}

Fields

host: &'a straccess_key: &'a strsecret_key: &'a strauth_type: AuthTypeformat: Formaturl_style: UrlStyleregion: Option<String>

Methods

impl<'a> Handler<'a>[src]

pub fn la(&self) -> Result<(), &'static str>[src]

pub fn ls(&self, bucket: Option<&str>) -> Result<(), &'static str>[src]

pub fn put(&self, file: &str, dest: &str) -> Result<(), &'static str>[src]

pub fn get(&self, src: &str, file: Option<&str>) -> Result<(), &'static str>[src]

pub fn cat(&self, src: &str) -> Result<(), &'static str>[src]

pub fn del(&self, src: &str) -> Result<(), &'static str>[src]

pub fn mb(&self, bucket: &str) -> Result<(), &'static str>[src]

pub fn rb(&self, bucket: &str) -> Result<(), &'static str>[src]

pub fn list_tag(&self, target: &str) -> Result<(), &'static str>[src]

pub fn add_tag(
    &self,
    target: &str,
    tags: &Vec<(&str, &str)>
) -> Result<(), &'static str>
[src]

pub fn del_tag(&self, target: &str) -> Result<(), &'static str>[src]

pub fn usage(
    &self,
    target: &str,
    options: &Vec<(&str, &str)>
) -> Result<(), &'static str>
[src]

pub fn url_command(&self, url: &str) -> Result<(), &'static str>[src]

pub fn change_s3_type(&mut self, command: &str)[src]

pub fn change_auth_type(&mut self, command: &str)[src]

pub fn change_format_type(&mut self, command: &str)[src]

pub fn change_url_style(&mut self, command: &str)[src]

pub fn init_from_config(credential: &'a CredentialConfig) -> Self[src]

Auto Trait Implementations

impl<'a> Send for Handler<'a>

impl<'a> Sync for Handler<'a>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Erased for T

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

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

impl<T> Same for T

type Output = T

Should always be Self