pub enum Auth {
Token(SecretString),
Bearer(SecretString),
}Expand description
How the client authenticates against the Matomo instance.
token works on all Matomo 5.x; bearer requires Matomo 5.4+.
Variants§
Token(SecretString)
Sent as the token_auth form field in the POST body.
Bearer(SecretString)
Sent as an Authorization: Bearer header (Matomo 5.4+).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
impl UnwindSafe for Auth
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