pub struct MirrorInfo {
pub url: String,
pub active: bool,
pub protocols: Vec<String>,
}Expand description
What: Represent one mirror-status row that can produce a pacman server line.
Inputs:
- Parsed from a caller-selected mirror-status JSON endpoint or constructed directly by callers.
Output:
- Portable mirror metadata for deterministic filtering and mirrorlist generation.
Details:
urlis a mirror base URL; generation appends/$repo/os/$arch.activeandprotocolsare source metadata, not a live health claim by this library.
Fields§
§url: StringMirror base URL, normally ending in /.
active: boolWhether the discovery source marked the mirror active.
protocols: Vec<String>Transport protocols advertised by the discovery source.
Trait Implementations§
Source§impl Clone for MirrorInfo
impl Clone for MirrorInfo
Source§fn clone(&self) -> MirrorInfo
fn clone(&self) -> MirrorInfo
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 MirrorInfo
impl Debug for MirrorInfo
Source§impl<'de> Deserialize<'de> for MirrorInfo
impl<'de> Deserialize<'de> for MirrorInfo
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 MirrorInfo
Source§impl PartialEq for MirrorInfo
impl PartialEq for MirrorInfo
Source§impl Serialize for MirrorInfo
impl Serialize for MirrorInfo
impl StructuralPartialEq for MirrorInfo
Auto Trait Implementations§
impl Freeze for MirrorInfo
impl RefUnwindSafe for MirrorInfo
impl Send for MirrorInfo
impl Sync for MirrorInfo
impl Unpin for MirrorInfo
impl UnsafeUnpin for MirrorInfo
impl UnwindSafe for MirrorInfo
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.