#[non_exhaustive]pub struct ProxySuccessorRequest {
pub method: Arc<str>,
pub params: Option<Arc<RawValue>>,
pub meta: Option<Meta>,
}unstable_protocol_v2 and unstable_proxy_chains only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Parameters of a proxy/successor request.
A proxy sends it to forward a message to its successor, and the conductor sends it to
deliver a message from the successor to the proxy. The envelope wraps one request: method
and params are the wrapped request’s method and params.
The result or error of the wrapped request is returned unchanged as the result or error
of the proxy/successor request.
See the Proxy Chains RFD.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: Arc<str>Method name of the wrapped request.
params: Option<Arc<RawValue>>Params of the wrapped request, forwarded unchanged.
Optional. Omitted and null are equivalent and mean the wrapped request has no params.
The wrapped request’s own _meta stays inside these params.
meta: Option<Meta>Metadata for the proxy/successor envelope itself, separate from the wrapped
message’s _meta.
The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Implementations§
Source§impl ProxySuccessorRequest
impl ProxySuccessorRequest
Sourcepub fn new(method: impl Into<Arc<str>>) -> Self
pub fn new(method: impl Into<Arc<str>>) -> Self
Builds ProxySuccessorRequest with the required fields set. Optional fields start unset or empty.
Sourcepub fn params(self, params: impl IntoOption<Arc<RawValue>>) -> Self
pub fn params(self, params: impl IntoOption<Arc<RawValue>>) -> Self
Params of the wrapped request, forwarded unchanged.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ProxySuccessorRequest
impl Clone for ProxySuccessorRequest
Source§impl Debug for ProxySuccessorRequest
impl Debug for ProxySuccessorRequest
Source§impl<'de> Deserialize<'de> for ProxySuccessorRequest
impl<'de> Deserialize<'de> for ProxySuccessorRequest
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>,
Source§impl JsonSchema for ProxySuccessorRequest
impl JsonSchema for ProxySuccessorRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more