pub struct ConfigSubscriptionRequest {
pub runtime_id: String,
pub action: i32,
pub products: i32,
}Expand description
ConfigSubscriptionRequest is used to manage the state of the stream created using CreateConfigSubscription.
Fields§
§runtime_id: StringRuntimeID of the client to track or untrack.
action: i32Action indicates the action to take for the client with the given runtime_id.
products: i32If action is TRACK, products indicates the set of products for which the client is interested in receiving updates.
Implementations§
Source§impl ConfigSubscriptionRequest
impl ConfigSubscriptionRequest
Sourcepub fn action(&self) -> Action
pub fn action(&self) -> Action
Returns the enum value of action, or the default if the field is set to an invalid enum value.
Sourcepub fn set_action(&mut self, value: Action)
pub fn set_action(&mut self, value: Action)
Sets action to the provided enum value.
Sourcepub fn products(&self) -> ConfigSubscriptionProducts
pub fn products(&self) -> ConfigSubscriptionProducts
Returns the enum value of products, or the default if the field is set to an invalid enum value.
Sourcepub fn set_products(&mut self, value: ConfigSubscriptionProducts)
pub fn set_products(&mut self, value: ConfigSubscriptionProducts)
Sets products to the provided enum value.
Trait Implementations§
Source§impl Clone for ConfigSubscriptionRequest
impl Clone for ConfigSubscriptionRequest
Source§fn clone(&self) -> ConfigSubscriptionRequest
fn clone(&self) -> ConfigSubscriptionRequest
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 ConfigSubscriptionRequest
impl Debug for ConfigSubscriptionRequest
Source§impl Default for ConfigSubscriptionRequest
impl Default for ConfigSubscriptionRequest
impl Eq for ConfigSubscriptionRequest
Source§impl Hash for ConfigSubscriptionRequest
impl Hash for ConfigSubscriptionRequest
Source§impl Message for ConfigSubscriptionRequest
impl Message for ConfigSubscriptionRequest
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.impl StructuralPartialEq for ConfigSubscriptionRequest
Auto Trait Implementations§
impl Freeze for ConfigSubscriptionRequest
impl RefUnwindSafe for ConfigSubscriptionRequest
impl Send for ConfigSubscriptionRequest
impl Sync for ConfigSubscriptionRequest
impl Unpin for ConfigSubscriptionRequest
impl UnsafeUnpin for ConfigSubscriptionRequest
impl UnwindSafe for ConfigSubscriptionRequest
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