pub struct ServeStartRequest {
pub addr: Option<String>,
pub async_: Option<bool>,
pub config: Option<String>,
pub filter: Option<String>,
pub fs: Option<String>,
pub group: Option<String>,
pub type_: Option<String>,
}Expand description
ServeStartRequest
JSON schema
{
"type": "object",
"properties": {
"_async": {
"description": "Run the command asynchronously. Returns a job id
immediately.",
"type": "boolean"
},
"_config": {
"description": "JSON encoded config overrides applied for this call
only.",
"type": "string"
},
"_filter": {
"description": "JSON encoded filter overrides applied for this call
only.",
"type": "string"
},
"_group": {
"description": "Assign the request to a custom stats group.",
"type": "string"
},
"addr": {
"description": "Address and port to bind the server to, such as
`:5572` or `localhost:8080`.",
"type": "string"
},
"fs": {
"description": "Remote path that will be served.",
"type": "string"
},
"type": {
"description": "Type of server to start (e.g. `http`, `webdav`,
`ftp`, `sftp`).",
"type": "string"
}
},
"additionalProperties": true
}Fields§
§addr: Option<String>Address and port to bind the server to, such as :5572 or
localhost:8080.
async_: Option<bool>Run the command asynchronously. Returns a job id immediately.
config: Option<String>JSON encoded config overrides applied for this call only.
filter: Option<String>JSON encoded filter overrides applied for this call only.
fs: Option<String>Remote path that will be served.
group: Option<String>Assign the request to a custom stats group.
type_: Option<String>Type of server to start (e.g. http, webdav, ftp, sftp).
Trait Implementations§
Source§impl Clone for ServeStartRequest
impl Clone for ServeStartRequest
Source§fn clone(&self) -> ServeStartRequest
fn clone(&self) -> ServeStartRequest
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 ServeStartRequest
impl Debug for ServeStartRequest
Source§impl Default for ServeStartRequest
impl Default for ServeStartRequest
Source§impl<'de> Deserialize<'de> for ServeStartRequest
impl<'de> Deserialize<'de> for ServeStartRequest
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<&ServeStartRequest> for ServeStartRequest
impl From<&ServeStartRequest> for ServeStartRequest
Source§fn from(value: &ServeStartRequest) -> Self
fn from(value: &ServeStartRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServeStartRequest
impl RefUnwindSafe for ServeStartRequest
impl Send for ServeStartRequest
impl Sync for ServeStartRequest
impl Unpin for ServeStartRequest
impl UnsafeUnpin for ServeStartRequest
impl UnwindSafe for ServeStartRequest
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