#[non_exhaustive]pub struct RegistryCredential { /* private fields */ }
Expand description
Credentials for a registry that contains WebAssembly component artifacts.
While this is usually a docker image registry, other registries may be supported in the future.
Implementations§
source§impl RegistryCredential
impl RegistryCredential
sourcepub fn from_username_password(
username: &str,
password: &str,
registry_type: &str,
) -> Self
pub fn from_username_password( username: &str, password: &str, registry_type: &str, ) -> Self
Create a RegistryCredential
from username and password
sourcepub fn from_token(token: &str, registry_type: &str) -> Self
pub fn from_token(token: &str, registry_type: &str) -> Self
Create a RegistryCredential
from token
pub fn password(&self) -> Option<&str>
pub fn token(&self) -> Option<&str>
pub fn username(&self) -> Option<&str>
pub fn registry_type(&self) -> &str
Trait Implementations§
source§impl Clone for RegistryCredential
impl Clone for RegistryCredential
source§fn clone(&self) -> RegistryCredential
fn clone(&self) -> RegistryCredential
Returns a copy 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 Debug for RegistryCredential
impl Debug for RegistryCredential
source§impl Default for RegistryCredential
impl Default for RegistryCredential
source§fn default() -> RegistryCredential
fn default() -> RegistryCredential
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RegistryCredential
impl<'de> Deserialize<'de> for RegistryCredential
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 RegistryCredential
impl PartialEq for RegistryCredential
source§impl Serialize for RegistryCredential
impl Serialize for RegistryCredential
source§impl TryFrom<&RegistryCredential> for RegistryAuth
impl TryFrom<&RegistryCredential> for RegistryAuth
impl Eq for RegistryCredential
impl StructuralPartialEq for RegistryCredential
Auto Trait Implementations§
impl Freeze for RegistryCredential
impl RefUnwindSafe for RegistryCredential
impl Send for RegistryCredential
impl Sync for RegistryCredential
impl Unpin for RegistryCredential
impl UnwindSafe for RegistryCredential
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.