#[non_exhaustive]pub struct CreateTopicsRequest {
pub topics: Vec<CreatableTopic>,
pub timeout_ms: i32,
pub validate_only: bool,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
CreateTopicsRequest, versions 2-7.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl CreateTopicsRequest
impl CreateTopicsRequest
Sourcepub const MIN_VERSION: i16 = 2
pub const MIN_VERSION: i16 = 2
The lowest schema version this snapshot can speak.
Sourcepub const MAX_VERSION: i16 = 7
pub const MAX_VERSION: i16 = 7
The highest schema version this snapshot can speak.
Sourcepub fn encode(
&self,
buf: &mut impl BufMut,
version: i16,
) -> Result<(), EncodeError>
pub fn encode( &self, buf: &mut impl BufMut, version: i16, ) -> Result<(), EncodeError>
Encode this CreateTopicsRequest at version.
Sourcepub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
pub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one CreateTopicsRequest, bounding allocation by the default
Limits derived from buf’s remaining length.
Sourcepub fn decode_with_limits(
buf: &mut impl Buf,
version: i16,
limits: Limits,
) -> Result<Self, DecodeError>
pub fn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Decode one CreateTopicsRequest under limits.
Sourcepub fn decode_with_budget(
buf: &mut impl Buf,
version: i16,
budget: &mut Budget,
) -> Result<Self, DecodeError>
pub fn decode_with_budget( buf: &mut impl Buf, version: i16, budget: &mut Budget, ) -> Result<Self, DecodeError>
Decode one CreateTopicsRequest against an existing budget.
Trait Implementations§
Source§impl Clone for CreateTopicsRequest
impl Clone for CreateTopicsRequest
Source§impl Debug for CreateTopicsRequest
impl Debug for CreateTopicsRequest
Source§impl Default for CreateTopicsRequest
impl Default for CreateTopicsRequest
Source§impl Message for CreateTopicsRequest
impl Message for CreateTopicsRequest
Source§const MIN_VERSION: i16 = 2
const MIN_VERSION: i16 = 2
The lowest schema version this snapshot can speak.
Source§const MAX_VERSION: i16 = 7
const MAX_VERSION: i16 = 7
The highest schema version this snapshot can speak.
fn encode(&self, buf: &mut impl BufMut, version: i16) -> Result<(), EncodeError>
Source§fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one message of
version. Read morefn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Source§impl PartialEq for CreateTopicsRequest
impl PartialEq for CreateTopicsRequest
impl StructuralPartialEq for CreateTopicsRequest
Auto Trait Implementations§
impl Forget for CreateTopicsRequest
impl Freeze for CreateTopicsRequest
impl Move for CreateTopicsRequest
impl RefUnwindSafe for CreateTopicsRequest
impl Send for CreateTopicsRequest
impl Sync for CreateTopicsRequest
impl Unpin for CreateTopicsRequest
impl UnsafeUnpin for CreateTopicsRequest
impl UnwindSafe for CreateTopicsRequest
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