pub struct PushTarget {
pub id: String,
pub url: String,
pub token: String,
pub bearer: Option<String>,
}Expand description
A webhook a caller registered for this task’s updates (A2A push
notifications). token is echoed back in X-A2A-Notification-Token so the
receiver can tell a real delivery from a stray POST; bearer is a
credential agentd presents to the receiver.
Fields§
§id: String§url: String§token: String§bearer: Option<String>Trait Implementations§
Source§impl Clone for PushTarget
impl Clone for PushTarget
Source§fn clone(&self) -> PushTarget
fn clone(&self) -> PushTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PushTarget
impl Debug for PushTarget
Source§impl<'de> Deserialize<'de> for PushTarget
impl<'de> Deserialize<'de> for PushTarget
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
Source§impl PartialEq for PushTarget
impl PartialEq for PushTarget
Source§impl Serialize for PushTarget
impl Serialize for PushTarget
impl StructuralPartialEq for PushTarget
Auto Trait Implementations§
impl Freeze for PushTarget
impl RefUnwindSafe for PushTarget
impl Send for PushTarget
impl Sync for PushTarget
impl Unpin for PushTarget
impl UnsafeUnpin for PushTarget
impl UnwindSafe for PushTarget
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