pub enum A2AAuth {
Bearer(String),
ApiKey(String),
None,
}Expand description
Authentication method for reaching a remote agent.
Variants§
Bearer(String)
Bearer token authentication.
ApiKey(String)
API key authentication.
None
No authentication required.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2AAuth
impl<'de> Deserialize<'de> for A2AAuth
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
Auto Trait Implementations§
impl Freeze for A2AAuth
impl RefUnwindSafe for A2AAuth
impl Send for A2AAuth
impl Sync for A2AAuth
impl Unpin for A2AAuth
impl UnsafeUnpin for A2AAuth
impl UnwindSafe for A2AAuth
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