Loading crates/s3s/src/auth/credentials.rs 0 → 100644 +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, } crates/s3s/src/auth.rs→crates/s3s/src/auth/mod.rs +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading crates/s3s/src/auth/secret_key.rs +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ use std::fmt; use zeroize::Zeroize; #[derive(Clone)] #[derive(Clone, PartialEq, Eq)] pub struct SecretKey(String); impl Zeroize for SecretKey { Loading crates/s3s/src/lib.rs +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ clippy::all, // clippy::cargo, // clippy::must_use_candidate, // clippy::self_named_module_files, // )] #![warn( clippy::dbg_macro, // Loading Loading
crates/s3s/src/auth/credentials.rs 0 → 100644 +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, }
crates/s3s/src/auth.rs→crates/s3s/src/auth/mod.rs +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
crates/s3s/src/auth/secret_key.rs +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ use std::fmt; use zeroize::Zeroize; #[derive(Clone)] #[derive(Clone, PartialEq, Eq)] pub struct SecretKey(String); impl Zeroize for SecretKey { Loading
crates/s3s/src/lib.rs +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ clippy::all, // clippy::cargo, // clippy::must_use_candidate, // clippy::self_named_module_files, // )] #![warn( clippy::dbg_macro, // Loading