pub struct A2aPeer {
pub name: String,
pub endpoint: String,
pub service: Option<String>,
pub headers: BTreeMap<String, String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub auth: Option<Auth>,
}Fields§
§name: String§endpoint: StringEither a literal URL, or empty when service: references a
kind: peer catalog entry — resolution fills it in before any dial.
service: Option<String>Reference a services: entry of kind: peer: inherit its connection
settings (restating endpoint/auth/headers here is refused).
headers: BTreeMap<String, String>§client_cert: Option<String>§client_key: Option<String>§auth: Option<Auth>A unified credential provider for the peer — static / oauth2
(device-login) / spiffe (jwt), each resolved to a bearer at dial
time, or aws, which instead signs every request body individually.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2aPeer
impl<'de> Deserialize<'de> for A2aPeer
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for A2aPeer
Auto Trait Implementations§
impl Freeze for A2aPeer
impl RefUnwindSafe for A2aPeer
impl Send for A2aPeer
impl Sync for A2aPeer
impl Unpin for A2aPeer
impl UnsafeUnpin for A2aPeer
impl UnwindSafe for A2aPeer
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