pub struct RemoteRegistryConfig {
pub url: String,
pub token: Option<String>,
pub timeout_secs: u64,
pub cache_ttl_secs: u64,
pub verify_ssl: bool,
}Expand description
Remote registry client configuration
Fields§
§url: StringRegistry URL (e.g., “https://registry.example.com”)
token: Option<String>Authentication token (optional)
timeout_secs: u64Request timeout duration
cache_ttl_secs: u64Cache expiration time
verify_ssl: boolWhether to verify SSL certificates
Implementations§
Source§impl RemoteRegistryConfig
impl RemoteRegistryConfig
Sourcepub fn with_token(self, token: String) -> Self
pub fn with_token(self, token: String) -> Self
Set authentication token
Sourcepub fn with_timeout(self, secs: u64) -> Self
pub fn with_timeout(self, secs: u64) -> Self
Set request timeout
Sourcepub fn with_cache_ttl(self, secs: u64) -> Self
pub fn with_cache_ttl(self, secs: u64) -> Self
Set cache TTL
Trait Implementations§
Source§impl Clone for RemoteRegistryConfig
impl Clone for RemoteRegistryConfig
Source§fn clone(&self) -> RemoteRegistryConfig
fn clone(&self) -> RemoteRegistryConfig
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 Debug for RemoteRegistryConfig
impl Debug for RemoteRegistryConfig
Source§impl<'de> Deserialize<'de> for RemoteRegistryConfig
impl<'de> Deserialize<'de> for RemoteRegistryConfig
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 RemoteRegistryConfig
impl RefUnwindSafe for RemoteRegistryConfig
impl Send for RemoteRegistryConfig
impl Sync for RemoteRegistryConfig
impl Unpin for RemoteRegistryConfig
impl UnsafeUnpin for RemoteRegistryConfig
impl UnwindSafe for RemoteRegistryConfig
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