Struct s3reader::S3ObjectUri
source · [−]pub struct S3ObjectUri { /* private fields */ }Expand description
The URI of an S3 object
Implementations
sourceimpl S3ObjectUri
impl S3ObjectUri
sourcepub fn new(uri: &str) -> Result<S3ObjectUri, S3ReaderError>
pub fn new(uri: &str) -> Result<S3ObjectUri, S3ReaderError>
Returns an S3ObjectUri for the provided S3 URI
Example
use s3reader::S3ObjectUri;
let uri = S3ObjectUri::new("s3://mybucket/path/to/file.xls").unwrap();
assert_eq!(uri.bucket() , "mybucket");
assert_eq!(uri.key() , "path/to/file.xls");Trait Implementations
sourceimpl Clone for S3ObjectUri
impl Clone for S3ObjectUri
sourcefn clone(&self) -> S3ObjectUri
fn clone(&self) -> S3ObjectUri
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for S3ObjectUri
impl Send for S3ObjectUri
impl Sync for S3ObjectUri
impl Unpin for S3ObjectUri
impl UnwindSafe for S3ObjectUri
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more