pub struct EntryBody {
pub kind: EntryKind,
pub key_material: String,
pub key_id: String,
pub key_schema_version: u32,
pub namespace_version: u64,
pub runtime_version: String,
pub generations: EntryGenerations,
pub created: Timestamp,
pub ttl_ms: u64,
pub payload: EntryPayload,
pub evidence: ContentDigest,
}Expand description
Everything an entry holds besides its integrity digest.
Fields§
§kind: EntryKind§key_material: StringThe complete canonical key material, lowercase hexadecimal.
key_id: StringThe key’s digest, under which the store keeps the entry.
key_schema_version: u32§namespace_version: u64§runtime_version: StringThe runtime version that wrote the entry.
generations: EntryGenerationsThe store’s generations captured before the work began.
created: TimestampThe evaluation time of the decision that wrote the entry; expiry is measured from it (3.4.3).
ttl_ms: u64§payload: EntryPayload§evidence: ContentDigestThe digest of the run record whose attempt produced the payload.
Implementations§
Source§impl EntryBody
impl EntryBody
Sourcepub fn integrity(&self) -> Result<ContentDigest, CanonicalError>
pub fn integrity(&self) -> Result<ContentDigest, CanonicalError>
The integrity digest of this body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntryBody
impl<'de> Deserialize<'de> for EntryBody
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 JsonSchema for EntryBody
impl JsonSchema for EntryBody
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for EntryBody
Auto Trait Implementations§
impl Freeze for EntryBody
impl RefUnwindSafe for EntryBody
impl Send for EntryBody
impl Sync for EntryBody
impl Unpin for EntryBody
impl UnsafeUnpin for EntryBody
impl UnwindSafe for EntryBody
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