pub struct AlterConsumer {
pub name: String,
pub set_important: Option<bool>,
pub set_read_from: Option<Timestamp>,
pub set_supported_codecs: Option<SupportedCodecs>,
pub alter_attributes: HashMap<String, String>,
}
Expand description
Consumer alter description.
Fields§
§name: String
Must have valid not empty name as a key.
set_important: Option<bool>
Consumer may be marked as ‘important’. It means messages for this consumer will never expire due to retention. User should take care that such consumer never stalls, to prevent running out of disk space. Flag that this consumer is important.
set_read_from: Option<Timestamp>
All messages with smaller server written_at timestamp will be skipped.
set_supported_codecs: Option<SupportedCodecs>
List of supported codecs by this consumer. supported_codecs on topic must be contained inside this list. If empty, codec compatibility check for the consumer is disabled.
alter_attributes: HashMap<String, String>
User and server attributes of consumer. Server attributes starts from “_” and will be validated by server. Leave the value blank to drop an attribute.
Implementations§
Source§impl AlterConsumer
impl AlterConsumer
Sourcepub fn set_important(&self) -> bool
pub fn set_important(&self) -> bool
Returns the value of set_important
, or the default value if set_important
is unset.
Trait Implementations§
Source§impl Clone for AlterConsumer
impl Clone for AlterConsumer
Source§fn clone(&self) -> AlterConsumer
fn clone(&self) -> AlterConsumer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AlterConsumer
impl Debug for AlterConsumer
Source§impl Default for AlterConsumer
impl Default for AlterConsumer
Source§impl<'de> Deserialize<'de> for AlterConsumer
impl<'de> Deserialize<'de> for AlterConsumer
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>,
Source§impl Message for AlterConsumer
impl Message for AlterConsumer
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for AlterConsumer
impl PartialEq for AlterConsumer
Source§impl Serialize for AlterConsumer
impl Serialize for AlterConsumer
impl StructuralPartialEq for AlterConsumer
Auto Trait Implementations§
impl Freeze for AlterConsumer
impl RefUnwindSafe for AlterConsumer
impl Send for AlterConsumer
impl Sync for AlterConsumer
impl Unpin for AlterConsumer
impl UnwindSafe for AlterConsumer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request