pub struct PreparedCall { /* private fields */ }Expand description
A prepared unary mutation, including its final inner payload and key mode.
Persist Self::to_bytes before the first execute_prepared attempt. Restore
with Self::from_bytes, then execute with the same service, codec, sealing
mode and op contract. A changed contract is refused: this format is not an
old-schema migration mechanism. Each sealed attempt gets fresh COSE claims;
this object contains neither an outer seal nor authentication headers.
URL userinfo is rejected; query and body data may still contain secrets.
Protect journal contents like the business payloads they contain.
Implementations§
Source§impl PreparedCall
impl PreparedCall
Sourcepub fn to_bytes(&self) -> Result<Vec<u8>, ClientError>
pub fn to_bytes(&self) -> Result<Vec<u8>, ClientError>
Serialize a validated descriptor; no request has to be sent first.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, ClientError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, ClientError>
Restore a bounded, versioned descriptor. Execution validates its runtime binding again, including when a caller uses serde directly instead.
Sourcepub fn payload_type(&self) -> &str
pub fn payload_type(&self) -> &str
The original inner media type, including compact mode when negotiated.
Sourcepub fn contract_sha(&self) -> &[u8; 32]
pub fn contract_sha(&self) -> &[u8; 32]
The contract under which the payload was prepared.
Trait Implementations§
Source§impl Clone for PreparedCall
impl Clone for PreparedCall
Source§fn clone(&self) -> PreparedCall
fn clone(&self) -> PreparedCall
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for PreparedCall
impl<'de> Deserialize<'de> for PreparedCall
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>,
Auto Trait Implementations§
impl Freeze for PreparedCall
impl RefUnwindSafe for PreparedCall
impl Send for PreparedCall
impl Sync for PreparedCall
impl Unpin for PreparedCall
impl UnsafeUnpin for PreparedCall
impl UnwindSafe for PreparedCall
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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