pub struct ServeListResponseListItem {
pub addr: String,
pub id: String,
pub params: Option<ServeListResponseListItemParams>,
}Expand description
ServeListResponseListItem
JSON schema
{
"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§
§addr: StringAddress and port the server is listening on.
id: StringIdentifier returned by serve/start.
params: Option<ServeListResponseListItemParams>Trait Implementations§
Source§impl Clone for ServeListResponseListItem
impl Clone for ServeListResponseListItem
Source§fn clone(&self) -> ServeListResponseListItem
fn clone(&self) -> ServeListResponseListItem
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 ServeListResponseListItem
impl Debug for ServeListResponseListItem
Source§impl<'de> Deserialize<'de> for ServeListResponseListItem
impl<'de> Deserialize<'de> for ServeListResponseListItem
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<&ServeListResponseListItem> for ServeListResponseListItem
impl From<&ServeListResponseListItem> for ServeListResponseListItem
Source§fn from(value: &ServeListResponseListItem) -> Self
fn from(value: &ServeListResponseListItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServeListResponseListItem
impl RefUnwindSafe for ServeListResponseListItem
impl Send for ServeListResponseListItem
impl Sync for ServeListResponseListItem
impl Unpin for ServeListResponseListItem
impl UnwindSafe for ServeListResponseListItem
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