#[non_exhaustive]pub struct TestStorageNewBucketRequest {
pub endpoint: String,
pub region: Option<String>,
pub bucket: String,
pub access_key: String,
pub secret_key: String,
pub provider_type: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: String§region: Option<String>§bucket: String§access_key: String§secret_key: String§provider_type: Option<String>Implementations§
Source§impl TestStorageNewBucketRequest
impl TestStorageNewBucketRequest
Sourcepub fn new(
endpoint: impl Into<String>,
bucket: impl Into<String>,
access_key: impl Into<String>,
secret_key: impl Into<String>,
) -> Self
pub fn new( endpoint: impl Into<String>, bucket: impl Into<String>, access_key: impl Into<String>, secret_key: impl Into<String>, ) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_region(self, value: impl Into<String>) -> Self
pub fn with_region(self, value: impl Into<String>) -> Self
Sets region.
Sourcepub fn with_provider_type(self, value: impl Into<String>) -> Self
pub fn with_provider_type(self, value: impl Into<String>) -> Self
Sets provider_type.
Trait Implementations§
Source§impl Clone for TestStorageNewBucketRequest
impl Clone for TestStorageNewBucketRequest
Source§impl Debug for TestStorageNewBucketRequest
impl Debug for TestStorageNewBucketRequest
Auto Trait Implementations§
impl Freeze for TestStorageNewBucketRequest
impl RefUnwindSafe for TestStorageNewBucketRequest
impl Send for TestStorageNewBucketRequest
impl Sync for TestStorageNewBucketRequest
impl Unpin for TestStorageNewBucketRequest
impl UnsafeUnpin for TestStorageNewBucketRequest
impl UnwindSafe for TestStorageNewBucketRequest
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