[−][src]Struct s3handler::Handler
Fields
host: &'a str
access_key: &'a str
secret_key: &'a str
auth_type: AuthType
format: Format
url_style: UrlStyle
region: 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]
&self,
target: &str,
tags: &Vec<(&str, &str)>
) -> Result<(), &'static str>
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]
&self,
target: &str,
options: &Vec<(&str, &str)>
) -> Result<(), &'static str>
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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same for T
type Output = T
Should always be Self