pub struct ServeListResponse {
pub list: Vec<ServeListResponseListItem>,
}Expand description
ServeListResponse
JSON schema
{
"type": "object",
"required": [
"list"
],
"properties": {
"list": {
"type": "array",
"items": {
"type": "object",
"required": [
"addr",
"id"
],
"properties": {
"addr": {
"description": "Address and port the server is listening
on.",
"type": "string"
},
"id": {
"description": "Identifier returned by `serve/start`.",
"type": "string"
},
"params": {
"description": "Serve configuration parameters supplied at
startup.",
"type": "object",
"required": [
"fs",
"id",
"type"
],
"properties": {
"fs": {
"type": "string"
},
"opt": {
"type": "object",
"additionalProperties": true
},
"type": {
"type": "string"
},
"vfsOpt": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}
}
}
}Fields§
§list: Vec<ServeListResponseListItem>Trait Implementations§
Source§impl Clone for ServeListResponse
impl Clone for ServeListResponse
Source§fn clone(&self) -> ServeListResponse
fn clone(&self) -> ServeListResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 ServeListResponse
impl Debug for ServeListResponse
Source§impl<'de> Deserialize<'de> for ServeListResponse
impl<'de> Deserialize<'de> for ServeListResponse
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<&ServeListResponse> for ServeListResponse
impl From<&ServeListResponse> for ServeListResponse
Source§fn from(value: &ServeListResponse) -> Self
fn from(value: &ServeListResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServeListResponse
impl RefUnwindSafe for ServeListResponse
impl Send for ServeListResponse
impl Sync for ServeListResponse
impl Unpin for ServeListResponse
impl UnwindSafe for ServeListResponse
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