pub struct ZrepoLink {
pub link_type: String,
pub url: String,
pub control: Option<String>,
pub pgp: Option<String>,
pub hash: Option<String>,
pub size: Option<String>,
}Expand description
A link to a zstd-compressed registry database (.zrepo) in a repository
configuration.
A .zrepo is a zstd-compressed tar of the whole registry tree (repo.yaml,
packages.json, every .pkg.lua and .sec.yaml). It replaces a Git clone
as the way a client obtains registry content, which is much cheaper to
download for a fully materialized snapshot.
Fields§
§link_type: StringThe type of link (e.g. “main”).
url: StringThe URL of the .zrepo archive.
control: Option<String>Optional URL of the zsync control file describing the snapshot. When
omitted, the control file is assumed to live at <url>.zsync.
A snapshot is transferred as a sequence of independently compressed frames, one per registry file, so that a client holding an older snapshot can recover the entries it already has and fetch only the rest. A registry that publishes no control file is still usable; the snapshot is simply downloaded whole.
pgp: Option<String>Optional URL for PGP signature.
hash: Option<String>Optional URL for checksum.
size: Option<String>Optional URL for size information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZrepoLink
impl<'de> Deserialize<'de> for ZrepoLink
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZrepoLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZrepoLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ZrepoLink
impl Serialize for ZrepoLink
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for ZrepoLink
impl RefUnwindSafe for ZrepoLink
impl Send for ZrepoLink
impl Sync for ZrepoLink
impl Unpin for ZrepoLink
impl UnsafeUnpin for ZrepoLink
impl UnwindSafe for ZrepoLink
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more