pub struct DockerAuthMaterial { /* private fields */ }Expand description
Stores authentication credentials obtained from the Docker registry, including tokens and expiration details.
Implementations§
Source§impl DockerAuthMaterial
impl DockerAuthMaterial
Sourcepub fn get_token(&self) -> &String
pub fn get_token(&self) -> &String
The token used to authenticate requests to the Docker registry.
Sourcepub fn get_access_token(&self) -> &String
pub fn get_access_token(&self) -> &String
The access token used to authenticate requests to the Docker registry.
Sourcepub fn get_expires_in(&self) -> &u32
pub fn get_expires_in(&self) -> &u32
The expiration time of the access token.
Sourcepub fn get_issued_at(&self) -> &DateTime<Utc>
pub fn get_issued_at(&self) -> &DateTime<Utc>
The time the access token was issued.
Source§impl DockerAuthMaterial
impl DockerAuthMaterial
Sourcepub fn set_token(&mut self, val: String) -> &mut Self
pub fn set_token(&mut self, val: String) -> &mut Self
The token used to authenticate requests to the Docker registry.
Sourcepub fn set_access_token(&mut self, val: String) -> &mut Self
pub fn set_access_token(&mut self, val: String) -> &mut Self
The access token used to authenticate requests to the Docker registry.
Sourcepub fn set_expires_in(&mut self, val: u32) -> &mut Self
pub fn set_expires_in(&mut self, val: u32) -> &mut Self
The expiration time of the access token.
Sourcepub fn set_issued_at(&mut self, val: DateTime<Utc>) -> &mut Self
pub fn set_issued_at(&mut self, val: DateTime<Utc>) -> &mut Self
The time the access token was issued.
Trait Implementations§
Source§impl Debug for DockerAuthMaterial
impl Debug for DockerAuthMaterial
Source§impl<'de> Deserialize<'de> for DockerAuthMaterial
impl<'de> Deserialize<'de> for DockerAuthMaterial
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 Freeze for DockerAuthMaterial
impl RefUnwindSafe for DockerAuthMaterial
impl Send for DockerAuthMaterial
impl Sync for DockerAuthMaterial
impl Unpin for DockerAuthMaterial
impl UnwindSafe for DockerAuthMaterial
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more