pub struct RegisterPayload {
pub name: String,
pub service_type: String,
pub port: u16,
pub ip: Option<String>,
pub lease_secs: Option<u64>,
pub txt: HashMap<String, String>,
}Expand description
Payload for registering a new service.
Fields§
§name: String§service_type: String§port: u16§ip: Option<String>Pin the A/AAAA record to a specific IP address. When absent, all machine IPs are advertised (auto-detect).
lease_secs: Option<u64>§txt: HashMap<String, String>Trait Implementations§
Source§impl Clone for RegisterPayload
impl Clone for RegisterPayload
Source§fn clone(&self) -> RegisterPayload
fn clone(&self) -> RegisterPayload
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 ComposeSchema for RegisterPayload
impl ComposeSchema for RegisterPayload
Source§impl Debug for RegisterPayload
impl Debug for RegisterPayload
Source§impl<'de> Deserialize<'de> for RegisterPayload
impl<'de> Deserialize<'de> for RegisterPayload
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 PartialEq for RegisterPayload
impl PartialEq for RegisterPayload
Source§fn eq(&self, other: &RegisterPayload) -> bool
fn eq(&self, other: &RegisterPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegisterPayload
impl Serialize for RegisterPayload
impl StructuralPartialEq for RegisterPayload
Auto Trait Implementations§
impl Freeze for RegisterPayload
impl RefUnwindSafe for RegisterPayload
impl Send for RegisterPayload
impl Sync for RegisterPayload
impl Unpin for RegisterPayload
impl UnsafeUnpin for RegisterPayload
impl UnwindSafe for RegisterPayload
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