#[non_exhaustive]pub struct V2EventAttributes {
pub attributes: Option<V2EventAttributesAttributes>,
pub message: Option<String>,
pub tags: Option<Vec<String>>,
pub timestamp: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Event attributes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: Option<V2EventAttributesAttributes>
JSON object for category-specific attributes.
message: Option<String>
Free-form text associated with the event.
A list of tags associated with the event.
timestamp: Option<String>
Timestamp when the event occurred.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl V2EventAttributes
impl V2EventAttributes
pub fn new() -> V2EventAttributes
pub fn attributes(self, value: V2EventAttributesAttributes) -> Self
pub fn message(self, value: String) -> Self
pub fn timestamp(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for V2EventAttributes
impl Clone for V2EventAttributes
Source§fn clone(&self) -> V2EventAttributes
fn clone(&self) -> V2EventAttributes
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 V2EventAttributes
impl Debug for V2EventAttributes
Source§impl Default for V2EventAttributes
impl Default for V2EventAttributes
Source§impl<'de> Deserialize<'de> for V2EventAttributes
impl<'de> Deserialize<'de> for V2EventAttributes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for V2EventAttributes
impl PartialEq for V2EventAttributes
Source§impl Serialize for V2EventAttributes
impl Serialize for V2EventAttributes
impl StructuralPartialEq for V2EventAttributes
Auto Trait Implementations§
impl Freeze for V2EventAttributes
impl RefUnwindSafe for V2EventAttributes
impl Send for V2EventAttributes
impl Sync for V2EventAttributes
impl Unpin for V2EventAttributes
impl UnwindSafe for V2EventAttributes
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