pub struct RawHeartbeatSnippet {
pub body: String,
pub collected_at: DateTime<Utc>,
pub format: RawHeartbeatSnippetFormat,
pub source: String,
pub truncated: bool,
}Expand description
RawHeartbeatSnippet
JSON schema
{
"type": "object",
"required": [
"body",
"collectedAt",
"format",
"source",
"truncated"
],
"properties": {
"body": {
"type": "string"
},
"collectedAt": {
"type": "string",
"format": "date-time"
},
"format": {
"$ref": "#/components/schemas/RawHeartbeatSnippetFormat"
},
"source": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
}
}Fields§
§body: String§collected_at: DateTime<Utc>§format: RawHeartbeatSnippetFormat§source: String§truncated: boolImplementations§
Source§impl RawHeartbeatSnippet
impl RawHeartbeatSnippet
pub fn builder() -> RawHeartbeatSnippet
Trait Implementations§
Source§impl Clone for RawHeartbeatSnippet
impl Clone for RawHeartbeatSnippet
Source§fn clone(&self) -> RawHeartbeatSnippet
fn clone(&self) -> RawHeartbeatSnippet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawHeartbeatSnippet
impl Debug for RawHeartbeatSnippet
Source§impl<'de> Deserialize<'de> for RawHeartbeatSnippet
impl<'de> Deserialize<'de> for RawHeartbeatSnippet
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<&RawHeartbeatSnippet> for RawHeartbeatSnippet
impl From<&RawHeartbeatSnippet> for RawHeartbeatSnippet
Source§fn from(value: &RawHeartbeatSnippet) -> Self
fn from(value: &RawHeartbeatSnippet) -> Self
Converts to this type from the input type.
Source§impl From<RawHeartbeatSnippet> for RawHeartbeatSnippet
impl From<RawHeartbeatSnippet> for RawHeartbeatSnippet
Source§fn from(value: RawHeartbeatSnippet) -> Self
fn from(value: RawHeartbeatSnippet) -> Self
Converts to this type from the input type.
Source§impl Serialize for RawHeartbeatSnippet
impl Serialize for RawHeartbeatSnippet
Source§impl TryFrom<RawHeartbeatSnippet> for RawHeartbeatSnippet
impl TryFrom<RawHeartbeatSnippet> for RawHeartbeatSnippet
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RawHeartbeatSnippet) -> Result<Self, ConversionError>
fn try_from(value: RawHeartbeatSnippet) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RawHeartbeatSnippet
impl RefUnwindSafe for RawHeartbeatSnippet
impl Send for RawHeartbeatSnippet
impl Sync for RawHeartbeatSnippet
impl Unpin for RawHeartbeatSnippet
impl UnsafeUnpin for RawHeartbeatSnippet
impl UnwindSafe for RawHeartbeatSnippet
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