pub struct A2aClientInterfacePin { /* private fields */ }Expand description
Exact egress-approved Agent Card interface.
Implementations§
Source§impl A2aClientInterfacePin
impl A2aClientInterfacePin
Sourcepub fn https(
value: &str,
binding: A2aBinding,
) -> Result<Self, A2aClientEndpointError>
pub fn https( value: &str, binding: A2aBinding, ) -> Result<Self, A2aClientEndpointError>
Pins one production HTTPS interface and its binding.
Sourcepub fn loopback_http(
value: &str,
binding: A2aBinding,
) -> Result<Self, A2aClientEndpointError>
pub fn loopback_http( value: &str, binding: A2aBinding, ) -> Result<Self, A2aClientEndpointError>
Pins one literal-loopback interface for tests or a managed sidecar.
Sourcepub fn with_tenant(
self,
tenant: impl Into<String>,
) -> Result<Self, A2aClientEndpointError>
pub fn with_tenant( self, tenant: impl Into<String>, ) -> Result<Self, A2aClientEndpointError>
Pins the exact opaque tenant advertised by this interface.
Sourcepub const fn binding(&self) -> A2aBinding
pub const fn binding(&self) -> A2aBinding
Returns the pinned transport binding.
Trait Implementations§
Source§impl Clone for A2aClientInterfacePin
impl Clone for A2aClientInterfacePin
Source§impl Debug for A2aClientInterfacePin
impl Debug for A2aClientInterfacePin
impl Eq for A2aClientInterfacePin
Source§impl PartialEq for A2aClientInterfacePin
impl PartialEq for A2aClientInterfacePin
impl StructuralPartialEq for A2aClientInterfacePin
Auto Trait Implementations§
impl Forget for A2aClientInterfacePin
impl Freeze for A2aClientInterfacePin
impl Move for A2aClientInterfacePin
impl RefUnwindSafe for A2aClientInterfacePin
impl Send for A2aClientInterfacePin
impl Sync for A2aClientInterfacePin
impl Unpin for A2aClientInterfacePin
impl UnsafeUnpin for A2aClientInterfacePin
impl UnwindSafe for A2aClientInterfacePin
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request