pub struct ServiceRegistration {
pub address: Option<String>,
pub alloc_id: Option<String>,
pub create_index: Option<i32>,
pub datacenter: Option<String>,
pub id: Option<String>,
pub job_id: Option<String>,
pub modify_index: Option<i32>,
pub namespace: Option<String>,
pub node_id: Option<String>,
pub port: Option<i32>,
pub service_name: Option<String>,
pub tags: Option<Vec<String>>,
}Fields§
§address: Option<String>§alloc_id: Option<String>§create_index: Option<i32>§datacenter: Option<String>§id: Option<String>§job_id: Option<String>§modify_index: Option<i32>§namespace: Option<String>§node_id: Option<String>§port: Option<i32>§service_name: Option<String>Trait Implementations§
Source§impl Clone for ServiceRegistration
impl Clone for ServiceRegistration
Source§fn clone(&self) -> ServiceRegistration
fn clone(&self) -> ServiceRegistration
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 ServiceRegistration
impl Debug for ServiceRegistration
Source§impl Default for ServiceRegistration
impl Default for ServiceRegistration
Source§fn default() -> ServiceRegistration
fn default() -> ServiceRegistration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceRegistration
impl<'de> Deserialize<'de> for ServiceRegistration
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 ServiceRegistration
impl PartialEq for ServiceRegistration
Source§impl Serialize for ServiceRegistration
impl Serialize for ServiceRegistration
impl StructuralPartialEq for ServiceRegistration
Auto Trait Implementations§
impl Freeze for ServiceRegistration
impl RefUnwindSafe for ServiceRegistration
impl Send for ServiceRegistration
impl Sync for ServiceRegistration
impl Unpin for ServiceRegistration
impl UnwindSafe for ServiceRegistration
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