pub struct RegistryAuth {
pub username: String,
pub password: String,
pub auth_type: RegistryAuthType,
}Expand description
Inline Docker/OCI registry credentials attached to a single pull request.
Prefer persistent credentials via /api/v1/credentials/registry for
long-lived services. Use this inline form for one-off pulls (e.g. CI
runners fetching a private image for a single job) where persisting a
credential is undesirable.
Fields§
§username: StringUsername for the registry (for basic auth) or a placeholder
identifier when auth_type == Token.
password: StringPassword or bearer token. Never logged or returned on any response — consumed once and dropped.
auth_type: RegistryAuthTypeWhich authentication scheme to use against the registry.
Trait Implementations§
Source§impl Clone for RegistryAuth
impl Clone for RegistryAuth
Source§fn clone(&self) -> RegistryAuth
fn clone(&self) -> RegistryAuth
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 moreSource§impl ComposeSchema for RegistryAuth
impl ComposeSchema for RegistryAuth
Source§impl Debug for RegistryAuth
impl Debug for RegistryAuth
Source§impl<'de> Deserialize<'de> for RegistryAuth
impl<'de> Deserialize<'de> for RegistryAuth
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
Source§impl PartialEq for RegistryAuth
impl PartialEq for RegistryAuth
Source§impl Serialize for RegistryAuth
impl Serialize for RegistryAuth
Source§impl ToSchema for RegistryAuth
impl ToSchema for RegistryAuth
impl Eq for RegistryAuth
impl StructuralPartialEq for RegistryAuth
Auto Trait Implementations§
impl Freeze for RegistryAuth
impl RefUnwindSafe for RegistryAuth
impl Send for RegistryAuth
impl Sync for RegistryAuth
impl Unpin for RegistryAuth
impl UnsafeUnpin for RegistryAuth
impl UnwindSafe for RegistryAuth
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.