pub struct HttpAuthProfile {
pub auth_type: HttpAuthType,
pub allowed_domains: Vec<String>,
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub access_token: Option<String>,
pub access_token_secret: Option<String>,
pub user_id: Option<String>,
pub token: Option<String>,
pub header_name: Option<String>,
pub header_value: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
}Expand description
Credentials http_request may attach to requests for the allowed domains
([http_auth.<name>] in the daemon’s config).
Fields§
§auth_type: HttpAuthType§allowed_domains: Vec<String>§api_key: Option<String>§api_secret: Option<String>§access_token: Option<String>§access_token_secret: Option<String>§user_id: Option<String>§token: Option<String>§header_name: Option<String>§header_value: Option<String>§username: Option<String>§password: Option<String>Implementations§
Source§impl HttpAuthProfile
impl HttpAuthProfile
Sourcepub fn credential_values(&self) -> Vec<&str>
pub fn credential_values(&self) -> Vec<&str>
Collect all credential values for this profile (for stripping from error messages).
Trait Implementations§
Source§impl Clone for HttpAuthProfile
impl Clone for HttpAuthProfile
Source§impl Debug for HttpAuthProfile
impl Debug for HttpAuthProfile
Source§impl<'de> Deserialize<'de> for HttpAuthProfile
impl<'de> Deserialize<'de> for HttpAuthProfile
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 Forget for HttpAuthProfile
impl Freeze for HttpAuthProfile
impl Move for HttpAuthProfile
impl RefUnwindSafe for HttpAuthProfile
impl Send for HttpAuthProfilewhere
RawVecInner: Send,
impl Sync for HttpAuthProfilewhere
RawVecInner: Sync,
impl Unpin for HttpAuthProfile
impl UnsafeUnpin for HttpAuthProfilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for HttpAuthProfilewhere
RawVecInner: UnwindSafe,
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