pub struct RegisterEntityService {
pub ID: Option<String>,
pub Service: String,
pub Tags: Vec<String>,
pub TaggedAddresses: HashMap<String, String>,
pub Meta: HashMap<String, String>,
pub Port: Option<u16>,
pub Namespace: Option<String>,
}Expand description
The service to register with consul’s global catalog. See https://www.consul.io/api/agent/service for more information.
Fields§
§ID: Option<String>ID to register service will, defaults to Service.Service property.
Service: StringThe name of the service.
Tags: Vec<String>Optional tags associated with the service.
TaggedAddresses: HashMap<String, String>Optional map of explicit LAN and WAN addresses for the service.
Meta: HashMap<String, String>Optional key value meta associated with the service.
Port: Option<u16>The port of the service
Namespace: Option<String>The consul namespace to register the service in.
Implementations§
Source§impl RegisterEntityService
impl RegisterEntityService
Sourcepub fn builder() -> RegisterEntityServiceBuilder
pub fn builder() -> RegisterEntityServiceBuilder
Create an instance of RegisterEntityService using the builder syntax
Trait Implementations§
Source§impl Clone for RegisterEntityService
impl Clone for RegisterEntityService
Source§fn clone(&self) -> RegisterEntityService
fn clone(&self) -> RegisterEntityService
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 RegisterEntityService
impl Debug for RegisterEntityService
Source§impl<'de> Deserialize<'de> for RegisterEntityService
impl<'de> Deserialize<'de> for RegisterEntityService
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 RegisterEntityService
impl RefUnwindSafe for RegisterEntityService
impl Send for RegisterEntityService
impl Sync for RegisterEntityService
impl Unpin for RegisterEntityService
impl UnsafeUnpin for RegisterEntityService
impl UnwindSafe for RegisterEntityService
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