#[non_exhaustive]pub struct ReplayComplete {
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
Marks the end of the history replay requested by session/resume.
The Agent sends this once on a session for each session/resume request
with a replayFrom cursor, after the last replayed update for that session
and before the response. It sends it for an empty history too. Every update
for the session between the request and this update is replayed history.
Every update after it is not.
The Agent does not send it when replayFrom is omitted or null, or when
it cannot finish the replay. A resume that ends without it delivered a
truncated replay.
See protocol docs: Replay Complete
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.meta: Option<Map<String, Value>>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 ReplayComplete
impl ReplayComplete
Sourcepub fn new() -> ReplayComplete
pub fn new() -> ReplayComplete
Builds ReplayComplete with no metadata.
Sourcepub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> ReplayComplete
pub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> ReplayComplete
Sets or clears optional metadata.
Trait Implementations§
Source§impl Clone for ReplayComplete
impl Clone for ReplayComplete
Source§fn clone(&self) -> ReplayComplete
fn clone(&self) -> ReplayComplete
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 ReplayComplete
impl Debug for ReplayComplete
Source§impl Default for ReplayComplete
impl Default for ReplayComplete
Source§fn default() -> ReplayComplete
fn default() -> ReplayComplete
Source§impl<'de> Deserialize<'de> for ReplayComplete
impl<'de> Deserialize<'de> for ReplayComplete
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplayComplete, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplayComplete, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ReplayComplete
Source§impl JsonSchema for ReplayComplete
impl JsonSchema for ReplayComplete
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 moreSource§impl PartialEq for ReplayComplete
impl PartialEq for ReplayComplete
Source§impl Serialize for ReplayComplete
impl Serialize for ReplayComplete
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ReplayComplete
Auto Trait Implementations§
impl Forget for ReplayComplete
impl Freeze for ReplayComplete
impl Move for ReplayComplete
impl RefUnwindSafe for ReplayComplete
impl Send for ReplayComplete
impl Sync for ReplayComplete
impl Unpin for ReplayComplete
impl UnsafeUnpin for ReplayComplete
impl UnwindSafe for ReplayComplete
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.