pub struct KeySources {
pub explicit: Option<String>,
pub binding_id: Option<String>,
}Expand description
Where a binding found the idempotency key of a call (AWP 2.0 §7.7, C7, C8).
Fields§
§explicit: Option<String>The explicit key: Idempotency-Key, the A2A metadata key, or the MCP _meta key.
binding_id: Option<String>The binding’s own id: the A2A messageId, or the MCP request id within its session.
Implementations§
Source§impl KeySources
impl KeySources
Sourcepub fn key_for(
&self,
source: IdempotencySource,
binding: Binding,
) -> Option<String>
pub fn key_for( &self, source: IdempotencySource, binding: Binding, ) -> Option<String>
The key source selects for a call over binding (AWP 2.0 §7.7): idempotency_key
takes only the explicit key; every other source takes the binding’s own source —
Idempotency-Key on HTTP, the messageId on A2A, the _meta key else the request id
on MCP.
Trait Implementations§
Source§impl Clone for KeySources
impl Clone for KeySources
Source§impl Debug for KeySources
impl Debug for KeySources
Source§impl Default for KeySources
impl Default for KeySources
impl Eq for KeySources
Source§impl PartialEq for KeySources
impl PartialEq for KeySources
impl StructuralPartialEq for KeySources
Auto Trait Implementations§
impl Forget for KeySources
impl Freeze for KeySources
impl Move for KeySources
impl RefUnwindSafe for KeySources
impl Send for KeySourceswhere
RawVecInner: Send,
impl Sync for KeySourceswhere
RawVecInner: Sync,
impl Unpin for KeySources
impl UnsafeUnpin for KeySources
impl UnwindSafe for KeySourceswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more