pub struct RegistryConfig {
pub server: String,
pub username: Option<String>,
pub password: Option<String>,
pub email: Option<String>,
}Expand description
Registry configuration and authentication
Fields§
§server: StringRegistry server address (e.g., “docker.io”, “ghcr.io”)
username: Option<String>Username for authentication
password: Option<String>Password or token for authentication
email: Option<String>Email (optional, for some registries)
Implementations§
Source§impl RegistryConfig
impl RegistryConfig
Sourcepub fn docker_hub(username: String, password: String) -> Self
pub fn docker_hub(username: String, password: String) -> Self
Create a new registry config for Docker Hub
Sourcepub fn github(username: String, token: String) -> Self
pub fn github(username: String, token: String) -> Self
Create a new registry config for GitHub Container Registry
Sourcepub fn with_auth(self, username: String, password: String) -> Self
pub fn with_auth(self, username: String, password: String) -> Self
Set authentication credentials
Sourcepub fn with_email(self, email: String) -> Self
pub fn with_email(self, email: String) -> Self
Set email
Trait Implementations§
Source§impl Clone for RegistryConfig
impl Clone for RegistryConfig
Source§fn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
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 moreAuto Trait Implementations§
impl Freeze for RegistryConfig
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnwindSafe for RegistryConfig
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