pub struct ConfigResource {
pub resource_type: i8,
pub name: String,
pub keys: Option<Vec<String>>,
}Expand description
Resource for DescribeConfigs / IncrementalAlterConfigs / AlterConfigs.
Fields§
§resource_type: i8Kafka resource type (CONFIG_RESOURCE_TOPIC, ConfigResourceType::Topic, …).
name: StringResource name (topic name, or broker id as a string).
keys: Option<Vec<String>>Config keys to fetch; None means all.
Implementations§
Source§impl ConfigResource
impl ConfigResource
Sourcepub fn of(ty: ConfigResourceType, name: impl Into<String>) -> Self
pub fn of(ty: ConfigResourceType, name: impl Into<String>) -> Self
Resource of this type. Fetches every config key unless Self::keys is set.
Sourcepub fn topic(name: impl Into<String>) -> Self
pub fn topic(name: impl Into<String>) -> Self
Topic resource. Fetches every config key unless Self::keys is set.
Sourcepub fn keys(self, keys: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn keys(self, keys: impl IntoIterator<Item = impl Into<String>>) -> Self
Restrict DescribeConfigs to these keys.
Sourcepub fn resource_type(&self) -> Option<ConfigResourceType>
pub fn resource_type(&self) -> Option<ConfigResourceType>
Java ConfigResource.type.
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Java ConfigResource.isDefault (empty name).
Trait Implementations§
Source§impl Clone for ConfigResource
impl Clone for ConfigResource
Source§fn clone(&self) -> ConfigResource
fn clone(&self) -> ConfigResource
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 ConfigResource
impl Debug for ConfigResource
Source§impl Display for ConfigResource
impl Display for ConfigResource
impl Eq for ConfigResource
Source§impl From<ListedConfigResource> for ConfigResource
impl From<ListedConfigResource> for ConfigResource
Source§fn from(listed: ListedConfigResource) -> Self
fn from(listed: ListedConfigResource) -> Self
Converts to this type from the input type.
Source§impl Hash for ConfigResource
impl Hash for ConfigResource
Source§impl PartialEq for ConfigResource
impl PartialEq for ConfigResource
impl StructuralPartialEq for ConfigResource
Auto Trait Implementations§
impl Freeze for ConfigResource
impl RefUnwindSafe for ConfigResource
impl Send for ConfigResource
impl Sync for ConfigResource
impl Unpin for ConfigResource
impl UnsafeUnpin for ConfigResource
impl UnwindSafe for ConfigResource
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