pub struct SignedCall {
pub signed: SignedInvocation,
pub argument: Option<InvokeArgument>,
pub allowed: Option<CallAllowed>,
}Expand description
An invocation as a change a host made for it keeps it: the caller’s
SignedInvocation and the argument it signed. The host signs the change
as the one who ran it; this is what says who asked for it. A peer that
reads the change checks the signature and the certificate, and the
argument against the hash under the signature (Self::argument_signed).
Fields§
§signed: SignedInvocation§argument: Option<InvokeArgument>The argument as the caller sent it. None when it was larger than
MAX_RECORDED_ARGUMENT_BYTES: the change then says who asked for
which action, not with what.
allowed: Option<CallAllowed>How the host that carried the call out found it allowed for an agent: the person’s yes,
or the lasting grant that let the agent make it unasked. Not under the signature: it is
the host’s own word, kept beside the call in a record that host keeps, where the step it
took is one the called action declares. None for a call a person made themselves.
Implementations§
Source§impl SignedCall
impl SignedCall
Sourcepub fn of(request: &InvokeRequest) -> Option<Self>
pub fn of(request: &InvokeRequest) -> Option<Self>
What a change made for request keeps of it: None for a request
nobody signed.
Sourcepub fn with(request: &InvokeRequest, signed: SignedInvocation) -> Self
pub fn with(request: &InvokeRequest, signed: SignedInvocation) -> Self
What a change made for request keeps of it, as signed signed it: what Self::of
keeps of a request that carries its signature, and what a host keeps of a call it signed
itself as the device that carried it out.
Sourcepub fn argument_signed(&self) -> Option<bool>
pub fn argument_signed(&self) -> Option<bool>
Whether the kept argument is the one signed: None when the change
keeps none to compare.
Trait Implementations§
Source§impl Clone for SignedCall
impl Clone for SignedCall
Source§impl Debug for SignedCall
impl Debug for SignedCall
Source§impl<'de> Deserialize<'de> for SignedCall
impl<'de> Deserialize<'de> for SignedCall
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>,
impl Eq for SignedCall
Source§impl PartialEq for SignedCall
impl PartialEq for SignedCall
Source§impl Serialize for SignedCall
impl Serialize for SignedCall
impl StructuralPartialEq for SignedCall
Auto Trait Implementations§
impl Forget for SignedCall
impl Freeze for SignedCall
impl Move for SignedCall
impl RefUnwindSafe for SignedCall
impl Send for SignedCall
impl Sync for SignedCall
impl Unpin for SignedCall
impl UnsafeUnpin for SignedCall
impl UnwindSafe for SignedCall
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
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> ⓘ
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> ⓘ
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