[−][src]Enum s3::region::Region
AWS S3 region identifier, passing in custom values is also possible, in that case it is up to you to pass a valid endpoint, otherwise boom will happen :)
Example
use std::str::FromStr; use s3::region::Region; // Parse from a string let region: Region = "us-east-1".parse().unwrap(); // Choose region directly let region = Region::EuWest2; // Custom region requires valid region name and endpoint let region_name = "nl-ams".to_string(); let endpoint = "https://s3.nl-ams.scw.cloud".to_string(); let region = Region::Custom { region: region_name, endpoint };
Variants
UsEast1us-east-1
UsEast2us-east-2
UsWest1us-west-1
UsWest2us-west-2
CaCentral1ca-central-1
ApSouth1ap-south-1
ApNortheast1ap-northeast-1
ApNortheast2ap-northeast-2
ApNortheast3ap-northeast-3
ApSoutheast1ap-southeast-1
ApSoutheast2ap-southeast-2
CnNorth1cn-north-1
CnNorthwest1cn-northwest-1
EuCentral1eu-central-1
EuWest1eu-west-1
EuWest2eu-west-2
EuWest3eu-west-3
SaEast1sa-east-1
DoNyc3Digital Ocean nyc3
DoAms3Digital Ocean ams3
DoSgp1Digital Ocean sgp1
CustomCustom region
Fields of Custom
Methods
impl Region[src]
pub fn endpoint(&self) -> String[src]
pub fn scheme(&self) -> String[src]
pub fn host(&self) -> String[src]
Trait Implementations
impl PartialEq<Region> for Region[src]
impl Clone for Region[src]
fn clone(&self) -> Region[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Region[src]
impl Display for Region[src]
impl Debug for Region[src]
impl FromStr for Region[src]
Auto Trait Implementations
impl Send for Region
impl Unpin for Region
impl Sync for Region
impl UnwindSafe for Region
impl RefUnwindSafe for Region
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> Erased for T
impl<'a, T> TryFrom<&'a str> for T where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,