pub struct NewAttributes {
pub attributes: Vec<MetricKeyValue>,
}Expand description
Options that are attached to metrics on a per-call basis
Fields§
§attributes: Vec<MetricKeyValue>The key-value pairs for this attribute set.
Implementations§
Source§impl NewAttributes
impl NewAttributes
pub const fn new(attributes: Vec<MetricKeyValue>) -> NewAttributes
Source§impl NewAttributes
impl NewAttributes
Sourcepub fn extend(&mut self, new_kvs: impl IntoIterator<Item = MetricKeyValue>)
pub fn extend(&mut self, new_kvs: impl IntoIterator<Item = MetricKeyValue>)
Append additional key-value pairs to this attribute set.
Trait Implementations§
Source§impl Clone for NewAttributes
impl Clone for NewAttributes
Source§fn clone(&self) -> NewAttributes
fn clone(&self) -> NewAttributes
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 NewAttributes
impl Debug for NewAttributes
Source§impl Default for NewAttributes
impl Default for NewAttributes
Source§fn default() -> NewAttributes
fn default() -> NewAttributes
Returns the “default value” for a type. Read more
Source§impl<I> From<I> for NewAttributeswhere
I: IntoIterator<Item = MetricKeyValue>,
impl<I> From<I> for NewAttributeswhere
I: IntoIterator<Item = MetricKeyValue>,
Source§impl From<NewAttributes> for HashMap<String, String>
impl From<NewAttributes> for HashMap<String, String>
Source§fn from(value: NewAttributes) -> Self
fn from(value: NewAttributes) -> Self
Converts to this type from the input type.
Source§impl From<NewAttributes> for OrderedPromLabelSet
impl From<NewAttributes> for OrderedPromLabelSet
Source§fn from(n: NewAttributes) -> Self
fn from(n: NewAttributes) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NewAttributes
impl RefUnwindSafe for NewAttributes
impl Send for NewAttributes
impl Sync for NewAttributes
impl Unpin for NewAttributes
impl UnsafeUnpin for NewAttributes
impl UnwindSafe for NewAttributes
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request