pub struct LegacyTopicConfigReplacement { /* private fields */ }Expand description
One Kafka resource and its complete caller-ordered configuration snapshot.
Implementations§
Source§impl LegacyTopicConfigReplacement
impl LegacyTopicConfigReplacement
Sourcepub const fn new(topic: String, configs: Vec<LegacyConfigEntry>) -> Self
pub const fn new(topic: String, configs: Vec<LegacyConfigEntry>) -> Self
Creates one raw topic snapshot; an empty snapshot clears dynamic values.
Sourcepub const fn resource(
resource_type: i8,
resource_name: String,
configs: Vec<LegacyConfigEntry>,
) -> Self
pub const fn resource( resource_type: i8, resource_name: String, configs: Vec<LegacyConfigEntry>, ) -> Self
Creates one exact raw resource snapshot for admission-time validation.
Sourcepub const fn resource_type(&self) -> i8
pub const fn resource_type(&self) -> i8
Returns Kafka’s exact resource-type code.
Sourcepub fn resource_name(&self) -> &str
pub fn resource_name(&self) -> &str
Returns the resource name.
Trait Implementations§
Source§impl Clone for LegacyTopicConfigReplacement
impl Clone for LegacyTopicConfigReplacement
Source§impl Debug for LegacyTopicConfigReplacement
impl Debug for LegacyTopicConfigReplacement
impl Eq for LegacyTopicConfigReplacement
impl StructuralPartialEq for LegacyTopicConfigReplacement
Auto Trait Implementations§
impl Freeze for LegacyTopicConfigReplacement
impl RefUnwindSafe for LegacyTopicConfigReplacement
impl Send for LegacyTopicConfigReplacement
impl Sync for LegacyTopicConfigReplacement
impl Unpin for LegacyTopicConfigReplacement
impl UnsafeUnpin for LegacyTopicConfigReplacement
impl UnwindSafe for LegacyTopicConfigReplacement
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