pub struct ConfigResource { /* private fields */ }Expand description
A class representing resources that have configs.
Corresponds to org.apache.kafka.common.config.ConfigResource.
Implementations§
Source§impl ConfigResource
impl ConfigResource
Sourcepub fn new(resource_type: Type, name: String) -> Self
pub fn new(resource_type: Type, name: String) -> Self
Create an instance of this class with the provided parameters.
resource_type- a resource typename- a resource name
Sourcepub fn resource_type(&self) -> Type
pub fn resource_type(&self) -> Type
Return the resource type.
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true if this is the default resource of a resource type. Resource name is empty for the default resource.
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 · 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
Source§impl Hash for ConfigResource
impl Hash for ConfigResource
Source§impl PartialEq for ConfigResource
impl PartialEq for ConfigResource
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more