pub struct ServeStartResponse {
pub addr: String,
pub id: String,
}Expand description
ServeStartResponse
JSON schema
{
"type": "object",
"required": [
"addr",
"id"
],
"properties": {
"addr": {
"description": "Address and port the server is listening on.",
"type": "string"
},
"id": {
"description": "Identifier to pass to `serve/stop`.",
"type": "string"
}
}
}Fields§
§addr: StringAddress and port the server is listening on.
id: StringIdentifier to pass to serve/stop.
Trait Implementations§
Source§impl Clone for ServeStartResponse
impl Clone for ServeStartResponse
Source§fn clone(&self) -> ServeStartResponse
fn clone(&self) -> ServeStartResponse
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 ServeStartResponse
impl Debug for ServeStartResponse
Source§impl<'de> Deserialize<'de> for ServeStartResponse
impl<'de> Deserialize<'de> for ServeStartResponse
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<&ServeStartResponse> for ServeStartResponse
impl From<&ServeStartResponse> for ServeStartResponse
Source§fn from(value: &ServeStartResponse) -> Self
fn from(value: &ServeStartResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServeStartResponse
impl RefUnwindSafe for ServeStartResponse
impl Send for ServeStartResponse
impl Sync for ServeStartResponse
impl Unpin for ServeStartResponse
impl UnwindSafe for ServeStartResponse
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