pub struct ConfigCreateRequest {
pub async_: Option<bool>,
pub group: Option<String>,
pub name: Option<String>,
pub opt: Option<String>,
pub parameters: Option<String>,
pub type_: Option<String>,
}Expand description
ConfigCreateRequest
JSON schema
{
"type": "object",
"properties": {
"_async": {
"description": "Run the command asynchronously. Returns a job id
immediately.",
"type": "boolean"
},
"_group": {
"description": "Assign the request to a custom stats group.",
"type": "string"
},
"name": {
"description": "Name of the new remote configuration.",
"type": "string"
},
"opt": {
"description": "Optional JSON object controlling interactive
behaviour (e.g. `obscure`, `continue`).",
"type": "string"
},
"parameters": {
"description": "JSON object of configuration key/value pairs
required for the remote.",
"type": "string"
},
"type": {
"description": "Backend type identifier, such as `drive`, `s3`, or
`dropbox`.",
"type": "string"
}
}
}Fields§
§async_: Option<bool>Run the command asynchronously. Returns a job id immediately.
group: Option<String>Assign the request to a custom stats group.
name: Option<String>Name of the new remote configuration.
opt: Option<String>Optional JSON object controlling interactive behaviour (e.g.
obscure, continue).
parameters: Option<String>JSON object of configuration key/value pairs required for the remote.
type_: Option<String>Backend type identifier, such as drive, s3, or dropbox.
Trait Implementations§
Source§impl Clone for ConfigCreateRequest
impl Clone for ConfigCreateRequest
Source§fn clone(&self) -> ConfigCreateRequest
fn clone(&self) -> ConfigCreateRequest
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 ConfigCreateRequest
impl Debug for ConfigCreateRequest
Source§impl Default for ConfigCreateRequest
impl Default for ConfigCreateRequest
Source§impl<'de> Deserialize<'de> for ConfigCreateRequest
impl<'de> Deserialize<'de> for ConfigCreateRequest
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<&ConfigCreateRequest> for ConfigCreateRequest
impl From<&ConfigCreateRequest> for ConfigCreateRequest
Source§fn from(value: &ConfigCreateRequest) -> Self
fn from(value: &ConfigCreateRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigCreateRequest
impl RefUnwindSafe for ConfigCreateRequest
impl Send for ConfigCreateRequest
impl Sync for ConfigCreateRequest
impl Unpin for ConfigCreateRequest
impl UnsafeUnpin for ConfigCreateRequest
impl UnwindSafe for ConfigCreateRequest
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