pub struct ReferenceSource {
pub as_of: Option<String>,
pub basis: Option<String>,
pub keys: Option<i32>,
pub origin: Option<String>,
pub refusal: Option<String>,
pub source: Option<String>,
pub terms: Option<String>,
pub version: Option<String>,
}Fields§
§as_of: Option<String>AsOf is when this publisher was current, RFC 3339.
basis: Option<String>Basis is the KIND of permission this publisher’s data reaches you under: licence (an explicit grant), registry (the registry of record publishing for anyone to consult), operator (an operator’s own machine-readable statement about its own network, published for third parties to filter by — not a licence, and not claimed as one), own (computed here), or none (nothing reaches you: the membership is held by the component that screens against it). It is on the wire so the licence position is an audit you can run.
keys: Option<i32>Keys is how many members this publisher contributed.
origin: Option<String>Origin is exactly where it was taken from, so it can be taken again.
refusal: Option<String>Refusal is why this publisher’s last take failed, if it did. The set keeps its previous version of this source and ages out visibly rather than silently shrinking.
source: Option<String>Source is the publisher.
terms: Option<String>Terms is the CITATION that basis points at — the licence identifier, the registry, or the operator publication. A source with no stated terms is not in the catalog.
version: Option<String>Version is the content digest of what this publisher last supplied. Two refreshes that agree on it took the same data.
Implementations§
Source§impl ReferenceSource
impl ReferenceSource
pub fn new() -> ReferenceSource
Trait Implementations§
Source§impl Clone for ReferenceSource
impl Clone for ReferenceSource
Source§fn clone(&self) -> ReferenceSource
fn clone(&self) -> ReferenceSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more