pub struct CustomHeartbeat {
pub data: CustomHeartbeatData,
pub resource_type: CustomResourceType,
}Expand description
The heartbeat of a resource whose type an extension defines.
JSON schema
{
"description": "The heartbeat of a resource whose type an extension defines.",
"type": "object",
"required": [
"data",
"resourceType"
],
"properties": {
"data": {
"$ref": "#/components/schemas/CustomHeartbeatData"
},
"resourceType": {
"$ref": "#/components/schemas/CustomResourceType"
}
}
}Fields§
§data: CustomHeartbeatData§resource_type: CustomResourceTypeImplementations§
Source§impl CustomHeartbeat
impl CustomHeartbeat
pub fn builder() -> CustomHeartbeat
Trait Implementations§
Source§impl Clone for CustomHeartbeat
impl Clone for CustomHeartbeat
Source§impl Debug for CustomHeartbeat
impl Debug for CustomHeartbeat
Source§impl<'de> Deserialize<'de> for CustomHeartbeat
impl<'de> Deserialize<'de> for CustomHeartbeat
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<&CustomHeartbeat> for CustomHeartbeat
impl From<&CustomHeartbeat> for CustomHeartbeat
Source§fn from(value: &CustomHeartbeat) -> Self
fn from(value: &CustomHeartbeat) -> Self
Converts to this type from the input type.
Source§impl From<CustomHeartbeat> for CustomHeartbeat
impl From<CustomHeartbeat> for CustomHeartbeat
Source§fn from(value: CustomHeartbeat) -> Self
fn from(value: CustomHeartbeat) -> Self
Converts to this type from the input type.
Source§impl Serialize for CustomHeartbeat
impl Serialize for CustomHeartbeat
Source§impl TryFrom<CustomHeartbeat> for CustomHeartbeat
impl TryFrom<CustomHeartbeat> for CustomHeartbeat
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CustomHeartbeat) -> Result<Self, ConversionError>
fn try_from(value: CustomHeartbeat) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for CustomHeartbeat
impl Freeze for CustomHeartbeat
impl Move for CustomHeartbeat
impl RefUnwindSafe for CustomHeartbeat
impl Send for CustomHeartbeat
impl Sync for CustomHeartbeat
impl Unpin for CustomHeartbeat
impl UnsafeUnpin for CustomHeartbeat
impl UnwindSafe for CustomHeartbeat
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