pub struct RegisterRequest {
pub datacenter: String,
pub id: String,
pub node: String,
pub address: String,
pub tagged_addresses: Option<HashMap<String, String>>,
pub node_meta: Option<HashMap<String, String>>,
pub service: Option<NodeService>,
pub check: Option<HealthCheck>,
pub checks: Option<HealthChecks>,
pub skip_node_update: bool,
pub token: Option<String>,
}
Expand description
RegisterRequest is used for the Catalog.Register endpoint to register a node as providing a service. If no service is provided, the node is registered.
Fields§
§datacenter: String
§id: String
§node: String
§address: String
§tagged_addresses: Option<HashMap<String, String>>
§node_meta: Option<HashMap<String, String>>
§service: Option<NodeService>
§check: Option<HealthCheck>
§checks: Option<HealthChecks>
§skip_node_update: bool
SkipNodeUpdate can be used when a register request is intended for updating a service and/or checks, but doesn’t want to overwrite any node information if the node is already registered. If the node doesn’t exist, it will still be created, but if the node exists, any node portion of this update will not apply.
token: Option<String>
Token is the ACL token ID. If not provided, the ‘anonymous’ token is assumed for backwards compatibility.
Trait Implementations§
Source§impl Clone for RegisterRequest
impl Clone for RegisterRequest
Source§fn clone(&self) -> RegisterRequest
fn clone(&self) -> RegisterRequest
Returns a copy 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 RegisterRequest
impl Debug for RegisterRequest
Source§impl Default for RegisterRequest
impl Default for RegisterRequest
Source§fn default() -> RegisterRequest
fn default() -> RegisterRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegisterRequest
impl<'de> Deserialize<'de> for RegisterRequest
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 RegisterRequest
impl RefUnwindSafe for RegisterRequest
impl Send for RegisterRequest
impl Sync for RegisterRequest
impl Unpin for RegisterRequest
impl UnwindSafe for RegisterRequest
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