pub struct RegistryDistributionSettings {
pub spec: String,
pub protocols: Vec<String>,
pub bootstrap_trackers: Vec<String>,
pub enable_dht: bool,
}Fields§
§spec: String§protocols: Vec<String>§bootstrap_trackers: Vec<String>§enable_dht: boolImplementations§
Source§impl RegistryDistributionSettings
impl RegistryDistributionSettings
pub fn allows_torrent(&self) -> bool
Trait Implementations§
Source§impl Clone for RegistryDistributionSettings
impl Clone for RegistryDistributionSettings
Source§fn clone(&self) -> RegistryDistributionSettings
fn clone(&self) -> RegistryDistributionSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegistryDistributionSettings
impl Debug for RegistryDistributionSettings
Source§impl<'de> Deserialize<'de> for RegistryDistributionSettings
impl<'de> Deserialize<'de> for RegistryDistributionSettings
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
impl Eq for RegistryDistributionSettings
impl StructuralPartialEq for RegistryDistributionSettings
Auto Trait Implementations§
impl Freeze for RegistryDistributionSettings
impl RefUnwindSafe for RegistryDistributionSettings
impl Send for RegistryDistributionSettings
impl Sync for RegistryDistributionSettings
impl Unpin for RegistryDistributionSettings
impl UnsafeUnpin for RegistryDistributionSettings
impl UnwindSafe for RegistryDistributionSettings
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