pub struct RegisterWorkerRequest {
pub type: i32,
pub agent_name: String,
pub version: String,
pub ping_interval: u32,
pub namespace: Option<String>,
pub allowed_permissions: Option<ParticipantPermission>,
pub deployment: String,
pub endpoints: Vec<AgentEndpoint>,
pub instance_id: String,
pub endpoint_protocol: u32,
}Fields§
§type: i32§agent_name: String§version: String§ping_interval: u32§namespace: Option<String>§allowed_permissions: Option<ParticipantPermission>§deployment: String§endpoints: Vec<AgentEndpoint>HTTP endpoints this worker serves through the data plane, in route order. Empty means the worker exposes no endpoints and needs no data connections.
instance_id: Stringrandom per process; a re-registration with a new instance_id supersedes the previous epoch and closes its remaining connections
endpoint_protocol: u32highest data-plane protocol version the worker supports; 0 = unsupported
Implementations§
Trait Implementations§
Source§impl Clone for RegisterWorkerRequest
impl Clone for RegisterWorkerRequest
Source§impl Debug for RegisterWorkerRequest
impl Debug for RegisterWorkerRequest
Source§impl Default for RegisterWorkerRequest
impl Default for RegisterWorkerRequest
§impl<'de> Deserialize<'de> for RegisterWorkerRequest
impl<'de> Deserialize<'de> for RegisterWorkerRequest
§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 Message for RegisterWorkerRequest
impl Message for RegisterWorkerRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for RegisterWorkerRequest
impl PartialEq for RegisterWorkerRequest
§impl Serialize for RegisterWorkerRequest
impl Serialize for RegisterWorkerRequest
impl StructuralPartialEq for RegisterWorkerRequest
Auto Trait Implementations§
impl Freeze for RegisterWorkerRequest
impl RefUnwindSafe for RegisterWorkerRequest
impl Send for RegisterWorkerRequest
impl Sync for RegisterWorkerRequest
impl Unpin for RegisterWorkerRequest
impl UnsafeUnpin for RegisterWorkerRequest
impl UnwindSafe for RegisterWorkerRequest
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