pub struct ChildRequestReceipt {Show 13 fields
pub id: String,
pub timestamp: u64,
pub session_id: SessionId,
pub parent_request_id: RequestId,
pub request_id: RequestId,
pub operation_kind: OperationKind,
pub terminal_state: OperationTerminalState,
pub outcome_hash: String,
pub policy_hash: String,
pub metadata: Option<Value>,
pub kernel_key: PublicKey,
pub algorithm: Option<SigningAlgorithm>,
pub signature: Signature,
}Expand description
Signed audit record for a nested child request handled under a parent tool call.
Fields§
§id: String§timestamp: u64§session_id: SessionId§parent_request_id: RequestId§request_id: RequestId§operation_kind: OperationKind§terminal_state: OperationTerminalState§outcome_hash: String§policy_hash: String§metadata: Option<Value>§kernel_key: PublicKey§algorithm: Option<SigningAlgorithm>Signing algorithm. Absent means Ed25519 for backward compatibility.
signature: SignatureImplementations§
Source§impl ChildRequestReceipt
impl ChildRequestReceipt
pub fn sign( body: ChildRequestReceiptBody, keypair: &Keypair, ) -> Result<ChildRequestReceipt, Error>
Sourcepub fn sign_with_backend(
body: ChildRequestReceiptBody,
backend: &dyn SigningBackend,
) -> Result<ChildRequestReceipt, Error>
pub fn sign_with_backend( body: ChildRequestReceiptBody, backend: &dyn SigningBackend, ) -> Result<ChildRequestReceipt, Error>
Sign a child-request receipt body with an arbitrary SigningBackend.
pub fn body(&self) -> ChildRequestReceiptBody
pub fn verify_signature(&self) -> Result<bool, Error>
Trait Implementations§
Source§impl Clone for ChildRequestReceipt
impl Clone for ChildRequestReceipt
Source§fn clone(&self) -> ChildRequestReceipt
fn clone(&self) -> ChildRequestReceipt
Returns a duplicate of the value. Read more
1.0.0 · 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 ChildRequestReceipt
impl Debug for ChildRequestReceipt
Source§impl<'de> Deserialize<'de> for ChildRequestReceipt
impl<'de> Deserialize<'de> for ChildRequestReceipt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChildRequestReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChildRequestReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ChildRequestReceipt
impl Serialize for ChildRequestReceipt
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ChildRequestReceipt
impl RefUnwindSafe for ChildRequestReceipt
impl Send for ChildRequestReceipt
impl Sync for ChildRequestReceipt
impl Unpin for ChildRequestReceipt
impl UnsafeUnpin for ChildRequestReceipt
impl UnwindSafe for ChildRequestReceipt
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