pub struct CreateTopicsRequestData {
pub topics: Vec<CreatableTopic>,
pub timeout_ms: i32,
pub validate_only: bool,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§topics: Vec<CreatableTopic>The topics to create.
timeout_ms: i32How long to wait in milliseconds before timing out the request.
validate_only: boolIf true, check that the topics can be created as specified, but don’t create anything.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl CreateTopicsRequestData
impl CreateTopicsRequestData
pub fn with_topics(self, value: Vec<CreatableTopic>) -> Self
pub fn with_timeout_ms(self, value: i32) -> Self
pub fn with_validate_only(self, value: bool) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for CreateTopicsRequestData
impl Clone for CreateTopicsRequestData
Source§fn clone(&self) -> CreateTopicsRequestData
fn clone(&self) -> CreateTopicsRequestData
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 CreateTopicsRequestData
impl Debug for CreateTopicsRequestData
Source§impl Default for CreateTopicsRequestData
impl Default for CreateTopicsRequestData
Source§impl PartialEq for CreateTopicsRequestData
impl PartialEq for CreateTopicsRequestData
Source§fn eq(&self, other: &CreateTopicsRequestData) -> bool
fn eq(&self, other: &CreateTopicsRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateTopicsRequestData
Auto Trait Implementations§
impl Freeze for CreateTopicsRequestData
impl RefUnwindSafe for CreateTopicsRequestData
impl Send for CreateTopicsRequestData
impl Sync for CreateTopicsRequestData
impl Unpin for CreateTopicsRequestData
impl UnsafeUnpin for CreateTopicsRequestData
impl UnwindSafe for CreateTopicsRequestData
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