#[non_exhaustive]pub struct EditStorageRequest {
pub name: String,
pub description: Option<String>,
pub endpoint: Option<String>,
pub access_key: Option<String>,
pub secret_key: Option<String>,
pub direct_access: Option<bool>,
}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.name: String§description: Option<String>§endpoint: Option<String>§access_key: Option<String>§secret_key: Option<String>§direct_access: Option<bool>Implementations§
Source§impl EditStorageRequest
impl EditStorageRequest
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_description(self, value: impl Into<String>) -> Self
pub fn with_description(self, value: impl Into<String>) -> Self
Sets description.
Sourcepub fn with_endpoint(self, value: impl Into<String>) -> Self
pub fn with_endpoint(self, value: impl Into<String>) -> Self
Sets endpoint.
Sourcepub fn with_access_key(self, value: impl Into<String>) -> Self
pub fn with_access_key(self, value: impl Into<String>) -> Self
Sets access_key.
Sourcepub fn with_secret_key(self, value: impl Into<String>) -> Self
pub fn with_secret_key(self, value: impl Into<String>) -> Self
Sets secret_key.
Sourcepub fn with_direct_access(self, value: bool) -> Self
pub fn with_direct_access(self, value: bool) -> Self
Sets direct_access.
Trait Implementations§
Source§impl Clone for EditStorageRequest
impl Clone for EditStorageRequest
Source§impl Debug for EditStorageRequest
impl Debug for EditStorageRequest
Source§impl Default for EditStorageRequest
impl Default for EditStorageRequest
Auto Trait Implementations§
impl Freeze for EditStorageRequest
impl RefUnwindSafe for EditStorageRequest
impl Send for EditStorageRequest
impl Sync for EditStorageRequest
impl Unpin for EditStorageRequest
impl UnsafeUnpin for EditStorageRequest
impl UnwindSafe for EditStorageRequest
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