pub struct GlobalRegistryConfig {
pub index: Option<String>,
pub token: OptValue<Secret<String>>,
pub credential_provider: Option<PathAndArgs>,
pub secret_key: OptValue<Secret<String>>,
pub secret_key_subject: Option<String>,
pub min_publish_age: Option<String>,
pub global_min_publish_age: Option<String>,
_default: Option<String>,
_global_credential_providers: Option<Vec<String>>,
}Expand description
The [registry] table, which has more keys than the [registries.NAME] tables.
Note: nesting RegistryConfig inside this struct and using serde(flatten) should work
but fails with “invalid type: sequence, expected a value” when attempting to deserialize.
Fields§
§index: Option<String>§token: OptValue<Secret<String>>§credential_provider: Option<PathAndArgs>§secret_key: OptValue<Secret<String>>§secret_key_subject: Option<String>§min_publish_age: Option<String>Minimum publish age threshold for RFC 3923
global_min_publish_age: Option<String>Global default Minimum publish age threshold for RFC 3923
_default: Option<String>§_global_credential_providers: Option<Vec<String>>Implementations§
Source§impl GlobalRegistryConfig
impl GlobalRegistryConfig
pub fn to_registry_config(self) -> RegistryConfig
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlobalRegistryConfig
impl<'de> Deserialize<'de> for GlobalRegistryConfig
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 GlobalRegistryConfig
impl RefUnwindSafe for GlobalRegistryConfig
impl Send for GlobalRegistryConfig
impl Sync for GlobalRegistryConfig
impl Unpin for GlobalRegistryConfig
impl UnsafeUnpin for GlobalRegistryConfig
impl UnwindSafe for GlobalRegistryConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 336 bytes