pub struct S3Client { /* private fields */ }Implementations§
Source§impl S3Client
impl S3Client
pub fn new( access_key: String, secret_key: String, region: String, host: String, ) -> Self
Sourcepub fn new_from_env() -> Self
pub fn new_from_env() -> Self
Panics if AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION and AWS_ENDPOINT_URL_S3 isn’t set.
pub async fn put_object(&self, object_key: &str, payload: &[u8]) -> Result<()>
Auto Trait Implementations§
impl Freeze for S3Client
impl RefUnwindSafe for S3Client
impl Send for S3Client
impl Sync for S3Client
impl Unpin for S3Client
impl UnwindSafe for S3Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more