pub struct ChainRow {Show 17 fields
pub seq: u64,
pub key_id: String,
pub transaction_id: String,
pub request_id: String,
pub request_hash: String,
pub action_name: String,
pub risk_level: RiskLevel,
pub summary: String,
pub approval_id: Option<String>,
pub warnings_json: String,
pub created_at: String,
pub prev_chain_hash: String,
pub chain_hash: String,
pub chain_version: u32,
pub caller_role: Option<String>,
pub event_tip: Option<String>,
pub caller_principal: Option<String>,
}Expand description
One row’s worth of chain data, as fetched from the store.
Fields§
§seq: u64§key_id: String§transaction_id: String§request_id: String§request_hash: String§action_name: String§risk_level: RiskLevel§summary: String§approval_id: Option<String>§warnings_json: String§created_at: String§prev_chain_hash: String§chain_hash: String§chain_version: u32Which encoding this row was signed under. See ChainIdentity.
caller_role: Option<String>NULL for legacy rows; required for chain_version 2 and 3.
event_tip: Option<String>NULL for legacy rows; required for chain_version 2 and 3. May be the
empty string when the event chain was empty at insert time.
caller_principal: Option<String>NULL for rows written before the principal migration (v1 and v2);
required for chain_version = 3. Scheme-prefixed, see
ChainIdentity::V3.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainRow
impl<'de> Deserialize<'de> for ChainRow
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
impl Eq for ChainRow
impl StructuralPartialEq for ChainRow
Auto Trait Implementations§
impl Freeze for ChainRow
impl RefUnwindSafe for ChainRow
impl Send for ChainRow
impl Sync for ChainRow
impl Unpin for ChainRow
impl UnsafeUnpin for ChainRow
impl UnwindSafe for ChainRow
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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