#[non_exhaustive]pub struct ProxySuccessorNotification {
pub method: Arc<str>,
pub params: Option<Arc<RawValue>>,
pub meta: Option<Meta>,
}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 notification.
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 notification: method
and params are the wrapped notification’s method and params.
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 notification.
params: Option<Arc<RawValue>>Params of the wrapped notification, forwarded unchanged.
Optional. Omitted and null are equivalent and mean the wrapped notification has no params.
The wrapped notification’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. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ProxySuccessorNotification
impl ProxySuccessorNotification
Sourcepub fn new(method: impl Into<Arc<str>>) -> Self
pub fn new(method: impl Into<Arc<str>>) -> Self
Builds ProxySuccessorNotification 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 notification, 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 make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ProxySuccessorNotification
impl Clone for ProxySuccessorNotification
Source§impl Debug for ProxySuccessorNotification
impl Debug for ProxySuccessorNotification
Source§impl<'de> Deserialize<'de> for ProxySuccessorNotification
impl<'de> Deserialize<'de> for ProxySuccessorNotification
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 ProxySuccessorNotification
impl JsonSchema for ProxySuccessorNotification
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