pub struct AuthenticationInfo {
pub scheme: String,
pub credentials: String,
}Expand description
Authentication information used by an agent when calling a push webhook.
In v1.0, this uses singular scheme (not schemes) and required
credentials.
Fields§
§scheme: StringAuthentication scheme (e.g. "bearer").
credentials: StringCredential value (e.g. a static token).
Trait Implementations§
Source§impl Clone for AuthenticationInfo
impl Clone for AuthenticationInfo
Source§fn clone(&self) -> AuthenticationInfo
fn clone(&self) -> AuthenticationInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthenticationInfo
impl Debug for AuthenticationInfo
Source§impl<'de> Deserialize<'de> for AuthenticationInfo
impl<'de> Deserialize<'de> for AuthenticationInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthenticationInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthenticationInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AuthenticationInfo
impl Serialize for AuthenticationInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AuthenticationInfo
impl RefUnwindSafe for AuthenticationInfo
impl Send for AuthenticationInfo
impl Sync for AuthenticationInfo
impl Unpin for AuthenticationInfo
impl UnsafeUnpin for AuthenticationInfo
impl UnwindSafe for AuthenticationInfo
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