pub struct PlacementRecord {
pub instance_id: String,
pub node_id: String,
pub kind: String,
pub workload: String,
pub variant: String,
pub decision_id: String,
pub manifest_hash: String,
pub project_id: Option<String>,
pub package_id: Option<String>,
pub signer_keys: Vec<String>,
pub artifact_hashes: Vec<String>,
}Expand description
One placed instance, as the controller knows it.
Fields§
§instance_id: StringInstance id on the target.
node_id: StringTarget node.
kind: StringWorkload kind.
workload: StringWorkload name.
variant: StringChosen variant.
decision_id: StringChained decision.
manifest_hash: StringPackage manifest hash.
project_id: Option<String>Project that placed it, when placement went through a project; the cog ingest bridge delivers the instance’s vectors to that project’s store (ADR-100, Decision 5).
package_id: Option<String>Package id the instance was placed from (what a revocation names). Absent on records written before revocation tracking: the manifest hash stands in for it.
signer_keys: Vec<String>Hex keys of the package’s signers, for revocation.
artifact_hashes: Vec<String>BLAKE3 hex hashes of the package’s artifacts, for revocation.
Trait Implementations§
Source§impl Clone for PlacementRecord
impl Clone for PlacementRecord
Source§impl Debug for PlacementRecord
impl Debug for PlacementRecord
Source§impl<'de> Deserialize<'de> for PlacementRecord
impl<'de> Deserialize<'de> for PlacementRecord
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 PlacementRecord
impl PartialEq for PlacementRecord
Source§impl Serialize for PlacementRecord
impl Serialize for PlacementRecord
impl StructuralPartialEq for PlacementRecord
Auto Trait Implementations§
impl Freeze for PlacementRecord
impl RefUnwindSafe for PlacementRecord
impl Send for PlacementRecord
impl Sync for PlacementRecord
impl Unpin for PlacementRecord
impl UnsafeUnpin for PlacementRecord
impl UnwindSafe for PlacementRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more