Struct ydb_unofficial::generated::ydb::topic::AlterTopicRequest
source · pub struct AlterTopicRequest {Show 13 fields
pub operation_params: Option<OperationParams>,
pub path: String,
pub alter_partitioning_settings: Option<AlterPartitioningSettings>,
pub set_retention_period: Option<Duration>,
pub set_retention_storage_mb: i64,
pub set_supported_codecs: Option<SupportedCodecs>,
pub set_partition_write_speed_bytes_per_second: i64,
pub set_partition_write_burst_bytes: i64,
pub alter_attributes: HashMap<String, String, RandomState>,
pub add_consumers: Vec<Consumer, Global>,
pub drop_consumers: Vec<String, Global>,
pub alter_consumers: Vec<AlterConsumer, Global>,
pub set_metering_mode: i32,
}
Expand description
Update existing topic request sent from client to server.
Fields§
§operation_params: Option<OperationParams>
§path: String
Topic path.
alter_partitioning_settings: Option<AlterPartitioningSettings>
partitioning_settings
set_retention_period: Option<Duration>
Retention settings. Currently, only one limit may be set, so other should not be set.
How long data in partition should be stored. Must be greater than 0 and less than limit for this database. Default limit - 36 hours.
set_retention_storage_mb: i64
How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
set_supported_codecs: Option<SupportedCodecs>
List of allowed codecs for writers. Writes with codec not from this list are forbidden.
set_partition_write_speed_bytes_per_second: i64
Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
set_partition_write_burst_bytes: i64
Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
alter_attributes: HashMap<String, String, RandomState>
User and server attributes of topic. Server attributes starts from “_” and will be validated by server. Leave the value blank to drop an attribute.
add_consumers: Vec<Consumer, Global>
Add consumers.
drop_consumers: Vec<String, Global>
Remove consumers (by their names)
alter_consumers: Vec<AlterConsumer, Global>
Alter consumers
set_metering_mode: i32
Set metering mode for topic in serverless database.
Implementations§
source§impl AlterTopicRequest
impl AlterTopicRequest
sourcepub fn set_metering_mode(&self) -> MeteringMode
pub fn set_metering_mode(&self) -> MeteringMode
Returns the enum value of set_metering_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_set_metering_mode(&mut self, value: MeteringMode)
pub fn set_set_metering_mode(&mut self, value: MeteringMode)
Sets set_metering_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for AlterTopicRequest
impl Clone for AlterTopicRequest
source§fn clone(&self) -> AlterTopicRequest
fn clone(&self) -> AlterTopicRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AlterTopicRequest
impl Debug for AlterTopicRequest
source§impl Default for AlterTopicRequest
impl Default for AlterTopicRequest
source§fn default() -> AlterTopicRequest
fn default() -> AlterTopicRequest
source§impl Message for AlterTopicRequest
impl Message for AlterTopicRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<AlterTopicRequest> for AlterTopicRequest
impl PartialEq<AlterTopicRequest> for AlterTopicRequest
source§fn eq(&self, other: &AlterTopicRequest) -> bool
fn eq(&self, other: &AlterTopicRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AlterTopicRequest
Auto Trait Implementations§
impl RefUnwindSafe for AlterTopicRequest
impl Send for AlterTopicRequest
impl Sync for AlterTopicRequest
impl Unpin for AlterTopicRequest
impl UnwindSafe for AlterTopicRequest
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> 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