pub struct RegisterEntityPayload {
pub ID: Option<String>,
pub Node: String,
pub Address: String,
pub Datacenter: Option<String>,
pub TaggedAddresses: HashMap<String, String>,
pub NodeMeta: HashMap<String, String>,
pub Service: Option<RegisterEntityService>,
pub Checks: Vec<RegisterEntityCheck>,
pub SkipNodeUpdate: Option<bool>,
}Expand description
Payload struct to register or update entries in consul’s catalog. See https://www.consul.io/api-docs/catalog#register-entity for more information.
Fields§
§ID: Option<String>Optional UUID to assign to the node. This string is required to be 36-characters and UUID formatted.
Node: StringNode ID to register.
Address: StringThe address to register.
Datacenter: Option<String>The datacenter to register in, defaults to the agent’s datacenter.
TaggedAddresses: HashMap<String, String>Tagged addressed to register with.
NodeMeta: HashMap<String, String>KV metadata paris to register with.
Service: Option<RegisterEntityService>Optional service to register.
Checks: Vec<RegisterEntityCheck>Checks to register.
SkipNodeUpdate: Option<bool>Whether to skip updating the nodes information in the registration.
Implementations§
Source§impl RegisterEntityPayload
impl RegisterEntityPayload
Sourcepub fn builder() -> RegisterEntityPayloadBuilder
pub fn builder() -> RegisterEntityPayloadBuilder
Create an instance of RegisterEntityPayload using the builder syntax
Trait Implementations§
Source§impl Clone for RegisterEntityPayload
impl Clone for RegisterEntityPayload
Source§fn clone(&self) -> RegisterEntityPayload
fn clone(&self) -> RegisterEntityPayload
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 RegisterEntityPayload
impl Debug for RegisterEntityPayload
Source§impl<'de> Deserialize<'de> for RegisterEntityPayload
impl<'de> Deserialize<'de> for RegisterEntityPayload
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 RegisterEntityPayload
impl RefUnwindSafe for RegisterEntityPayload
impl Send for RegisterEntityPayload
impl Sync for RegisterEntityPayload
impl Unpin for RegisterEntityPayload
impl UnsafeUnpin for RegisterEntityPayload
impl UnwindSafe for RegisterEntityPayload
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