#[non_exhaustive]pub struct ProxySuccessorNotification {
pub method: Arc<str>,
pub params: Option<Arc<RawValue>>,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 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.
When present, it MUST be a JSON object or array, as JSON-RPC requires.
The wrapped notification’s own _meta stays inside these params.
meta: Option<Map<String, Value>>Metadata for the proxy/successor envelope itself, separate from the wrapped
message’s _meta. It is hop-local: the conductor does not copy it into the message
it unwraps.
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 ProxySuccessorNotification
impl ProxySuccessorNotification
Sourcepub fn new(method: impl Into<Arc<str>>) -> ProxySuccessorNotification
pub fn new(method: impl Into<Arc<str>>) -> ProxySuccessorNotification
Builds ProxySuccessorNotification with the required fields set. Optional fields start unset or empty.
Sourcepub fn params(
self,
params: impl IntoOption<Arc<RawValue>>,
) -> ProxySuccessorNotification
pub fn params( self, params: impl IntoOption<Arc<RawValue>>, ) -> ProxySuccessorNotification
Params of the wrapped notification, forwarded unchanged.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> ProxySuccessorNotification
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> ProxySuccessorNotification
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 ProxySuccessorNotification
impl Clone for ProxySuccessorNotification
Source§fn clone(&self) -> ProxySuccessorNotification
fn clone(&self) -> ProxySuccessorNotification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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<ProxySuccessorNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProxySuccessorNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonRpcMessage for ProxySuccessorNotification
impl JsonRpcMessage for ProxySuccessorNotification
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
impl JsonRpcNotification for ProxySuccessorNotification
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