pub struct BackendCommandRequest {
pub arg: Vec<String>,
pub async_: Option<bool>,
pub command: Option<String>,
pub fs: Option<String>,
pub group: Option<String>,
pub opt: Option<String>,
}Expand description
BackendCommandRequest
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"
},
"arg": {
"description": "Optional positional arguments for the backend
command.",
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"description": "Backend-specific command to invoke.",
"type": "string"
},
"fs": {
"description": "Remote name or path the backend command should
target.",
"type": "string"
},
"opt": {
"description": "Backend command options encoded as a JSON string.",
"type": "string"
}
}
}Fields§
§arg: Vec<String>Optional positional arguments for the backend command.
async_: Option<bool>Run the command asynchronously. Returns a job id immediately.
command: Option<String>Backend-specific command to invoke.
fs: Option<String>Remote name or path the backend command should target.
group: Option<String>Assign the request to a custom stats group.
opt: Option<String>Backend command options encoded as a JSON string.
Trait Implementations§
Source§impl Clone for BackendCommandRequest
impl Clone for BackendCommandRequest
Source§fn clone(&self) -> BackendCommandRequest
fn clone(&self) -> BackendCommandRequest
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 BackendCommandRequest
impl Debug for BackendCommandRequest
Source§impl Default for BackendCommandRequest
impl Default for BackendCommandRequest
Source§impl<'de> Deserialize<'de> for BackendCommandRequest
impl<'de> Deserialize<'de> for BackendCommandRequest
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<&BackendCommandRequest> for BackendCommandRequest
impl From<&BackendCommandRequest> for BackendCommandRequest
Source§fn from(value: &BackendCommandRequest) -> Self
fn from(value: &BackendCommandRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackendCommandRequest
impl RefUnwindSafe for BackendCommandRequest
impl Send for BackendCommandRequest
impl Sync for BackendCommandRequest
impl Unpin for BackendCommandRequest
impl UnsafeUnpin for BackendCommandRequest
impl UnwindSafe for BackendCommandRequest
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