pub struct CreateStorageBoxRequest {
pub access_settings: Option<Box<CreateStorageBoxRequestAccessSettings>>,
pub labels: Option<HashMap<String, String>>,
pub location: String,
pub name: String,
pub password: String,
pub ssh_keys: Option<Vec<String>>,
pub storage_box_type: String,
}Expand description
CreateStorageBoxRequest : Request for POST https://api.hetzner.com/v1/storage_boxes
Fields§
§access_settings: Option<Box<CreateStorageBoxRequestAccessSettings>>§labels: Option<HashMap<String, String>>User-defined labels (key/value pairs) for the Resource. For more information, see "Labels". | User-defined labels (key/value pairs) for the Resource. Note that the set of Labels provided in the request will overwrite the existing one. For more information, see "Labels".
location: StringID or Name of Location.
name: StringName of the Storage Box.
password: StringPassword of the Storage Box. For more details, see the Storage Boxes password policy.
ssh_keys: Option<Vec<String>>SSH public keys in OpenSSH format to inject into the Storage Box.
storage_box_type: StringID or Name of the Storage Box Type.
Implementations§
Trait Implementations§
Source§impl Clone for CreateStorageBoxRequest
impl Clone for CreateStorageBoxRequest
Source§fn clone(&self) -> CreateStorageBoxRequest
fn clone(&self) -> CreateStorageBoxRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateStorageBoxRequest
impl Debug for CreateStorageBoxRequest
Source§impl Default for CreateStorageBoxRequest
impl Default for CreateStorageBoxRequest
Source§fn default() -> CreateStorageBoxRequest
fn default() -> CreateStorageBoxRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateStorageBoxRequest
impl<'de> Deserialize<'de> for CreateStorageBoxRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateStorageBoxRequest
impl PartialEq for CreateStorageBoxRequest
Source§fn eq(&self, other: &CreateStorageBoxRequest) -> bool
fn eq(&self, other: &CreateStorageBoxRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateStorageBoxRequest
impl Serialize for CreateStorageBoxRequest
impl StructuralPartialEq for CreateStorageBoxRequest
Auto Trait Implementations§
impl Freeze for CreateStorageBoxRequest
impl RefUnwindSafe for CreateStorageBoxRequest
impl Send for CreateStorageBoxRequest
impl Sync for CreateStorageBoxRequest
impl Unpin for CreateStorageBoxRequest
impl UnsafeUnpin for CreateStorageBoxRequest
impl UnwindSafe for CreateStorageBoxRequest
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