pub struct ServerPort {
pub port: Option<i64>,
pub protocol: Option<String>,
}Expand description
ServerPort
JSON schema
{
"type": "object",
"properties": {
"port": {
"examples": [
10000
],
"type": "integer"
},
"protocol": {
"type": "string"
}
}
}Fields§
§port: Option<i64>§protocol: Option<String>Trait Implementations§
Source§impl Clone for ServerPort
impl Clone for ServerPort
Source§fn clone(&self) -> ServerPort
fn clone(&self) -> ServerPort
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 ServerPort
impl Debug for ServerPort
Source§impl Default for ServerPort
impl Default for ServerPort
Source§impl<'de> Deserialize<'de> for ServerPort
impl<'de> Deserialize<'de> for ServerPort
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
Auto Trait Implementations§
impl Freeze for ServerPort
impl RefUnwindSafe for ServerPort
impl Send for ServerPort
impl Sync for ServerPort
impl Unpin for ServerPort
impl UnsafeUnpin for ServerPort
impl UnwindSafe for ServerPort
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