pub struct ObservedInventoryBatch {
pub backend: HeartbeatBackend,
pub complete: bool,
pub controller_platform: Platform,
pub inventory_scope: String,
pub observed_at: DateTime<Utc>,
pub resources: Vec<ObservedResourceSample>,
pub source_kind: String,
}Expand description
ObservedInventoryBatch
JSON schema
{
"type": "object",
"required": [
"backend",
"complete",
"controllerPlatform",
"inventoryScope",
"observedAt",
"resources",
"sourceKind"
],
"properties": {
"backend": {
"$ref": "#/components/schemas/HeartbeatBackend"
},
"complete": {
"description": "Whether this batch is a complete replacement for the scope. Complete\nbatches tombstone previously observed rows in the same scope when they\nare absent from `resources`.",
"type": "boolean"
},
"controllerPlatform": {
"$ref": "#/components/schemas/Platform"
},
"inventoryScope": {
"description": "Stable scope for the provider list operation that produced this batch.",
"type": "string"
},
"observedAt": {
"description": "Time the inventory scope was observed.",
"type": "string",
"format": "date-time"
},
"resources": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ObservedResourceSample"
}
},
"sourceKind": {
"description": "Writer/source for this inventory pass, such as `operator` or\n`manager-observer`.",
"type": "string"
}
}
}Fields§
§backend: HeartbeatBackend§complete: boolWhether this batch is a complete replacement for the scope. Complete
batches tombstone previously observed rows in the same scope when they
are absent from resources.
controller_platform: Platform§inventory_scope: StringStable scope for the provider list operation that produced this batch.
observed_at: DateTime<Utc>Time the inventory scope was observed.
resources: Vec<ObservedResourceSample>§source_kind: StringWriter/source for this inventory pass, such as operator or
manager-observer.
Implementations§
Source§impl ObservedInventoryBatch
impl ObservedInventoryBatch
pub fn builder() -> ObservedInventoryBatch
Trait Implementations§
Source§impl Clone for ObservedInventoryBatch
impl Clone for ObservedInventoryBatch
Source§fn clone(&self) -> ObservedInventoryBatch
fn clone(&self) -> ObservedInventoryBatch
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 ObservedInventoryBatch
impl Debug for ObservedInventoryBatch
Source§impl<'de> Deserialize<'de> for ObservedInventoryBatch
impl<'de> Deserialize<'de> for ObservedInventoryBatch
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<&ObservedInventoryBatch> for ObservedInventoryBatch
impl From<&ObservedInventoryBatch> for ObservedInventoryBatch
Source§fn from(value: &ObservedInventoryBatch) -> Self
fn from(value: &ObservedInventoryBatch) -> Self
Converts to this type from the input type.
Source§impl From<ObservedInventoryBatch> for ObservedInventoryBatch
impl From<ObservedInventoryBatch> for ObservedInventoryBatch
Source§fn from(value: ObservedInventoryBatch) -> Self
fn from(value: ObservedInventoryBatch) -> Self
Converts to this type from the input type.
Source§impl Serialize for ObservedInventoryBatch
impl Serialize for ObservedInventoryBatch
Source§impl TryFrom<ObservedInventoryBatch> for ObservedInventoryBatch
impl TryFrom<ObservedInventoryBatch> for ObservedInventoryBatch
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ObservedInventoryBatch) -> Result<Self, ConversionError>
fn try_from(value: ObservedInventoryBatch) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ObservedInventoryBatch
impl RefUnwindSafe for ObservedInventoryBatch
impl Send for ObservedInventoryBatch
impl Sync for ObservedInventoryBatch
impl Unpin for ObservedInventoryBatch
impl UnsafeUnpin for ObservedInventoryBatch
impl UnwindSafe for ObservedInventoryBatch
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