pub struct RecentLogEntry {
pub attributes: HashMap<String, String>,
pub message: String,
pub resource: Option<String>,
pub severity: String,
pub timestamp: DateTime<Utc>,
}Expand description
RecentLogEntry
JSON schema
{
"type": "object",
"required": [
"attributes",
"message",
"severity",
"timestamp"
],
"properties": {
"attributes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"message": {
"type": "string"
},
"resource": {
"description": "Workload that produced the entry (OTLP `service.name`).",
"type": [
"string",
"null"
]
},
"severity": {
"type": "string"
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
}Fields§
§attributes: HashMap<String, String>§message: String§resource: Option<String>Workload that produced the entry (OTLP service.name).
severity: String§timestamp: DateTime<Utc>Implementations§
Source§impl RecentLogEntry
impl RecentLogEntry
pub fn builder() -> RecentLogEntry
Trait Implementations§
Source§impl Clone for RecentLogEntry
impl Clone for RecentLogEntry
Source§impl Debug for RecentLogEntry
impl Debug for RecentLogEntry
Source§impl<'de> Deserialize<'de> for RecentLogEntry
impl<'de> Deserialize<'de> for RecentLogEntry
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 From<&RecentLogEntry> for RecentLogEntry
impl From<&RecentLogEntry> for RecentLogEntry
Source§fn from(value: &RecentLogEntry) -> Self
fn from(value: &RecentLogEntry) -> Self
Converts to this type from the input type.
Source§impl From<RecentLogEntry> for RecentLogEntry
impl From<RecentLogEntry> for RecentLogEntry
Source§fn from(value: RecentLogEntry) -> Self
fn from(value: RecentLogEntry) -> Self
Converts to this type from the input type.
Source§impl Serialize for RecentLogEntry
impl Serialize for RecentLogEntry
Source§impl TryFrom<RecentLogEntry> for RecentLogEntry
impl TryFrom<RecentLogEntry> for RecentLogEntry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RecentLogEntry) -> Result<Self, ConversionError>
fn try_from(value: RecentLogEntry) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for RecentLogEntry
impl Freeze for RecentLogEntry
impl Move for RecentLogEntry
impl RefUnwindSafe for RecentLogEntry
impl Send for RecentLogEntry
impl Sync for RecentLogEntry
impl Unpin for RecentLogEntry
impl UnsafeUnpin for RecentLogEntry
impl UnwindSafe for RecentLogEntry
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