pub struct RequestParams {
pub session: String,
pub correlation_id: String,
pub capability_id: String,
pub descriptor_version: String,
pub descriptor_digest: String,
pub operation: String,
pub interaction: InteractionKind,
pub caller_instance: Option<String>,
pub remaining_timeout_nanos: Option<String>,
pub extensions: Vec<InvocationExtension>,
pub payload: Value,
}Expand description
Host-to-child request params for provide-request-v1.
Fields§
§session: StringAuthenticated process session.
correlation_id: StringOpaque canonical decimal-string correlation ID.
capability_id: StringSelected Capability identity.
descriptor_version: StringExact selected Descriptor version.
descriptor_digest: StringExact selected Descriptor digest.
operation: StringSelected operation.
interaction: InteractionKindExact request interaction marker.
caller_instance: Option<String>Host-established caller Plugin Instance, or null for host ingress.
remaining_timeout_nanos: Option<String>Relative remaining budget as decimal nanoseconds, or null for none.
extensions: Vec<InvocationExtension>Structurally validated portable invocation extensions.
payload: ValueCapability-defined portable JSON payload.
Implementations§
Source§impl RequestParams
impl RequestParams
Sourcepub fn validate(&self) -> Result<(), ProtocolError>
pub fn validate(&self) -> Result<(), ProtocolError>
Validates host-owned request envelope fields before payload Schema decoding.
Trait Implementations§
Source§impl Clone for RequestParams
impl Clone for RequestParams
Source§fn clone(&self) -> RequestParams
fn clone(&self) -> RequestParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestParams
impl Debug for RequestParams
Source§impl<'de> Deserialize<'de> for RequestParams
impl<'de> Deserialize<'de> for RequestParams
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 PartialEq for RequestParams
impl PartialEq for RequestParams
Source§impl Serialize for RequestParams
impl Serialize for RequestParams
impl StructuralPartialEq for RequestParams
Auto Trait Implementations§
impl Freeze for RequestParams
impl RefUnwindSafe for RequestParams
impl Send for RequestParams
impl Sync for RequestParams
impl Unpin for RequestParams
impl UnsafeUnpin for RequestParams
impl UnwindSafe for RequestParams
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