pub struct SourceInfo {
pub name: &'static str,
pub tier: u8,
pub role: Role,
pub covers: Covers,
pub publisher: Option<&'static str>,
pub feature: Option<&'static str>,
pub enable: &'static [&'static str],
pub compiled: bool,
}Expand description
One catalog row.
Fields§
§name: &'static strSource key, as in the attempt trace.
tier: u8Tier 1 (always on), 2 (opt-in, no key), 3 (TDM agreement + key).
role: RoleWhat it contributes.
covers: CoversWhich refs it answers for.
publisher: Option<&'static str>The publisher a prefix-scoped source belongs to.
feature: Option<&'static str>Cargo feature the source is compiled under, if any.
enable: &'static [&'static str]Environment the source needs at run time (enable flag, key, agreement).
compiled: boolWhether this binary contains the source.
Trait Implementations§
Source§impl Clone for SourceInfo
impl Clone for SourceInfo
Source§fn clone(&self) -> SourceInfo
fn clone(&self) -> SourceInfo
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 moreimpl Copy for SourceInfo
Source§impl Debug for SourceInfo
impl Debug for SourceInfo
impl Eq for SourceInfo
Source§impl PartialEq for SourceInfo
impl PartialEq for SourceInfo
Source§fn eq(&self, other: &SourceInfo) -> bool
fn eq(&self, other: &SourceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceInfo
Auto Trait Implementations§
impl Freeze for SourceInfo
impl RefUnwindSafe for SourceInfo
impl Send for SourceInfo
impl Sync for SourceInfo
impl Unpin for SourceInfo
impl UnsafeUnpin for SourceInfo
impl UnwindSafe for SourceInfo
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