pub struct UpdateInfraStorageBody {
pub driver: UpdateInfraStorageBodyDriver,
pub s3: Option<UpdateInfraStorageBodyS3>,
}Expand description
UpdateInfraStorageBody
JSON schema
{
"type": "object",
"required": [
"driver"
],
"properties": {
"driver": {
"type": "string",
"enum": [
"off",
"disk",
"s3"
]
},
"s3": {
"type": "object",
"properties": {
"accessKey": {
"type": "string"
},
"bucket": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"publicBaseUrl": {
"type": "string"
},
"region": {
"type": "string"
},
"secretKey": {
"type": "string"
}
}
}
}
}Fields§
§driver: UpdateInfraStorageBodyDriver§s3: Option<UpdateInfraStorageBodyS3>Implementations§
Source§impl UpdateInfraStorageBody
impl UpdateInfraStorageBody
pub fn builder() -> UpdateInfraStorageBody
Trait Implementations§
Source§impl Clone for UpdateInfraStorageBody
impl Clone for UpdateInfraStorageBody
Source§fn clone(&self) -> UpdateInfraStorageBody
fn clone(&self) -> UpdateInfraStorageBody
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 UpdateInfraStorageBody
impl Debug for UpdateInfraStorageBody
Source§impl<'de> Deserialize<'de> for UpdateInfraStorageBody
impl<'de> Deserialize<'de> for UpdateInfraStorageBody
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 From<&UpdateInfraStorageBody> for UpdateInfraStorageBody
impl From<&UpdateInfraStorageBody> for UpdateInfraStorageBody
Source§fn from(value: &UpdateInfraStorageBody) -> Self
fn from(value: &UpdateInfraStorageBody) -> Self
Converts to this type from the input type.
Source§impl From<UpdateInfraStorageBody> for UpdateInfraStorageBody
impl From<UpdateInfraStorageBody> for UpdateInfraStorageBody
Source§fn from(value: UpdateInfraStorageBody) -> Self
fn from(value: UpdateInfraStorageBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for UpdateInfraStorageBody
impl Serialize for UpdateInfraStorageBody
Source§impl TryFrom<UpdateInfraStorageBody> for UpdateInfraStorageBody
impl TryFrom<UpdateInfraStorageBody> for UpdateInfraStorageBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdateInfraStorageBody) -> Result<Self, ConversionError>
fn try_from(value: UpdateInfraStorageBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UpdateInfraStorageBody
impl RefUnwindSafe for UpdateInfraStorageBody
impl Send for UpdateInfraStorageBody
impl Sync for UpdateInfraStorageBody
impl Unpin for UpdateInfraStorageBody
impl UnsafeUnpin for UpdateInfraStorageBody
impl UnwindSafe for UpdateInfraStorageBody
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