Struct backblaze_b2::raw::authorize::B2Authorization
[−]
[src]
pub struct B2Authorization<'a> { pub credentials: &'a B2Credentials, pub authorization_token: String, pub api_url: String, pub download_url: String, pub recommended_part_size: usize, pub absolute_minimum_part_size: usize, }
Fields
credentials: &'a B2Credentials
api_url: String
download_url: String
recommended_part_size: usize
absolute_minimum_part_size: usize
Methods
impl<'a> B2Authorization<'a>
[src]
fn auth_header(&self) -> B2AuthHeader
impl<'a> B2Authorization<'a>
[src]
fn list_buckets<InfoType>(
&self,
client: &Client
) -> Result<Vec<Bucket<InfoType>>, B2Error> where
InfoType: Deserialize<'de>,
&self,
client: &Client
) -> Result<Vec<Bucket<InfoType>>, B2Error> where
InfoType: Deserialize<'de>,
fn create_bucket<InfoType>(
&self,
bucket_name: &str,
bucket_type: BucketType,
bucket_info: InfoType,
lifecycle_rules: Vec<LifecycleRule>,
client: &Client
) -> Result<Bucket<InfoType>, B2Error> where
InfoType: Serialize + Deserialize<'de>,
&self,
bucket_name: &str,
bucket_type: BucketType,
bucket_info: InfoType,
lifecycle_rules: Vec<LifecycleRule>,
client: &Client
) -> Result<Bucket<InfoType>, B2Error> where
InfoType: Serialize + Deserialize<'de>,
fn create_bucket_no_info(
&self,
bucket_name: &str,
bucket_type: BucketType,
lifecycle_rules: Vec<LifecycleRule>,
client: &Client
) -> Result<Bucket<JsonValue>, B2Error>
&self,
bucket_name: &str,
bucket_type: BucketType,
lifecycle_rules: Vec<LifecycleRule>,
client: &Client
) -> Result<Bucket<JsonValue>, B2Error>
fn delete_bucket_id<InfoType>(
&self,
bucket_id: &str,
client: &Client
) -> Result<Bucket<InfoType>, B2Error> where
InfoType: Deserialize<'de>,
&self,
bucket_id: &str,
client: &Client
) -> Result<Bucket<InfoType>, B2Error> where
InfoType: Deserialize<'de>,
fn delete_bucket<InfoType>(
&self,
bucket: &Bucket<InfoType>,
client: &Client
) -> Result<Bucket<InfoType>, B2Error> where
InfoType: Deserialize<'de>,
&self,
bucket: &Bucket<InfoType>,
client: &Client
) -> Result<Bucket<InfoType>, B2Error> where
InfoType: Deserialize<'de>,
impl<'a> B2Authorization<'a>
[src]
fn get_file_info<IT>(
&self,
file_id: &str,
client: &Client
) -> Result<MoreFileInfo<IT>, B2Error> where
IT: Deserialize<'de>,
&self,
file_id: &str,
client: &Client
) -> Result<MoreFileInfo<IT>, B2Error> where
IT: Deserialize<'de>,
fn list_file_names<IT>(
&self,
bucket_id: &str,
start_file_name: Option<&str>,
max_file_count: u32,
prefix: Option<&str>,
delimiter: Option<char>,
client: &Client
) -> Result<(FileNameListing<IT>, Option<String>), B2Error> where
IT: Deserialize<'de>,
&self,
bucket_id: &str,
start_file_name: Option<&str>,
max_file_count: u32,
prefix: Option<&str>,
delimiter: Option<char>,
client: &Client
) -> Result<(FileNameListing<IT>, Option<String>), B2Error> where
IT: Deserialize<'de>,
fn list_file_versions<IT>(
&self,
bucket_id: &str,
start_file_name: Option<&str>,
start_file_id: Option<&str>,
max_file_count: u32,
prefix: Option<&str>,
delimiter: Option<char>,
client: &Client
) -> Result<(FileVersionListing<IT>, Option<String>, Option<String>), B2Error> where
IT: Deserialize<'de>,
&self,
bucket_id: &str,
start_file_name: Option<&str>,
start_file_id: Option<&str>,
max_file_count: u32,
prefix: Option<&str>,
delimiter: Option<char>,
client: &Client
) -> Result<(FileVersionListing<IT>, Option<String>, Option<String>), B2Error> where
IT: Deserialize<'de>,
fn delete_file_version(
&self,
file_name: &str,
file_id: &str,
client: &Client
) -> Result<(), B2Error>
&self,
file_name: &str,
file_id: &str,
client: &Client
) -> Result<(), B2Error>
fn hide_file(
&self,
file_name: &str,
bucket_id: &str,
client: &Client
) -> Result<HideMarkerInfo, B2Error>
&self,
file_name: &str,
bucket_id: &str,
client: &Client
) -> Result<HideMarkerInfo, B2Error>
impl<'a> B2Authorization<'a>
[src]
fn get_upload_url(
&self,
bucket_id: &str,
client: &Client
) -> Result<UploadAuthorization, B2Error>
&self,
bucket_id: &str,
client: &Client
) -> Result<UploadAuthorization, B2Error>