Struct rdkafka::admin::ConfigResource
source · pub struct ConfigResource {
pub specifier: OwnedResourceSpecifier,
pub entries: Vec<ConfigEntry>,
}
Expand description
A configurable resource and its current configuration values.
Fields§
§specifier: OwnedResourceSpecifier
Identifies the resource.
entries: Vec<ConfigEntry>
The current configuration parameters.
Implementations§
source§impl ConfigResource
impl ConfigResource
sourcepub fn entry_map(&self) -> HashMap<&str, &ConfigEntry>
pub fn entry_map(&self) -> HashMap<&str, &ConfigEntry>
Builds a HashMap
of configuration entries, keyed by configuration
entry name.
sourcepub fn get(&self, name: &str) -> Option<&ConfigEntry>
pub fn get(&self, name: &str) -> Option<&ConfigEntry>
Searches the configuration entries to find the named parameter.
For more efficient lookups, use entry_map
to build a HashMap
instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigResource
impl RefUnwindSafe for ConfigResource
impl Send for ConfigResource
impl Sync for ConfigResource
impl Unpin 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