Unverified Commit 5a589acb authored by Nugine's avatar Nugine
Browse files

s3s: auth: credentials

parent f31981cf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
use super::SecretKey;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Credentials {
    pub access_key: String,
    pub secret_key: SecretKey,
}
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ pub use self::secret_key::SecretKey;
mod simple_auth;
pub use self::simple_auth::SimpleAuth;

mod credentials;
pub use self::credentials::Credentials;

use crate::error::S3Result;

/// S3 Authentication Provider
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ use std::fmt;

use zeroize::Zeroize;

#[derive(Clone)]
#[derive(Clone, PartialEq, Eq)]
pub struct SecretKey(String);

impl Zeroize for SecretKey {
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
    clippy::all, //
    clippy::cargo, //
    clippy::must_use_candidate, //
    clippy::self_named_module_files, //
)]
#![warn(
    clippy::dbg_macro, //