pub struct AttributeUtil;
Expand description
Utility for working with topic attributes
Implementations§
Source§impl AttributeUtil
impl AttributeUtil
Sourcepub fn alter_current_attributes(
create: bool,
all: &HashMap<CheetahString, Arc<dyn Attribute>>,
current_attributes: &HashMap<CheetahString, CheetahString>,
new_attributes: &HashMap<CheetahString, CheetahString>,
) -> Result<HashMap<CheetahString, CheetahString>, AttributeError>
pub fn alter_current_attributes( create: bool, all: &HashMap<CheetahString, Arc<dyn Attribute>>, current_attributes: &HashMap<CheetahString, CheetahString>, new_attributes: &HashMap<CheetahString, CheetahString>, ) -> Result<HashMap<CheetahString, CheetahString>, AttributeError>
Alter the current attributes based on new attribute requests
§Arguments
create
- If true, we’re creating new attributes, otherwise updating existing onesall
- Map of all supported attributescurrent_attributes
- Current attribute valuesnew_attributes
- New attribute operations (prefixed with + or -)
§Returns
A Result containing the final attribute map or an error
Auto Trait Implementations§
impl Freeze for AttributeUtil
impl RefUnwindSafe for AttributeUtil
impl Send for AttributeUtil
impl Sync for AttributeUtil
impl Unpin for AttributeUtil
impl UnwindSafe for AttributeUtil
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