pub struct RepoConfig {
pub version: String,
pub name: String,
pub description: String,
pub advisory_prefix: Option<String>,
pub git: Vec<GitLink>,
pub pkg: Vec<PkgLink>,
pub delta: Vec<DeltaLink>,
pub zrepo: Vec<ZrepoLink>,
pub db: Option<String>,
pub pgp: Vec<PgpKey>,
pub repos: Vec<RepoEntry>,
}Expand description
The structure of a repo.yaml repository configuration file.
Fields§
§version: StringThe version of the repository configuration format.
name: StringThe name of the repository.
description: StringA short description of the repository.
advisory_prefix: Option<String>The prefix used for security advisories in this repository.
git: Vec<GitLink>The list of Git repositories associated with this repository.
Optional, because a registry may be published as a zrepo snapshot
with no Git repository at all.
pkg: Vec<PkgLink>The list of package indices or archives.
delta: Vec<DeltaLink>The list of delta patches.
zrepo: Vec<ZrepoLink>The list of zstd-compressed registry database archives.
When present, clients fetch the registry content from a .zrepo
snapshot (optionally updated via a .zdelta patch) instead of cloning
the Git repository named in git.
db: Option<String>Optional URL to a pre-compiled database.
pgp: Vec<PgpKey>The list of PGP keys for verification.
repos: Vec<RepoEntry>The list of sub-repositories.
Trait Implementations§
Source§impl Clone for RepoConfig
impl Clone for RepoConfig
Source§fn clone(&self) -> RepoConfig
fn clone(&self) -> RepoConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepoConfig
impl Debug for RepoConfig
Source§impl<'de> Deserialize<'de> for RepoConfig
impl<'de> Deserialize<'de> for RepoConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RepoConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RepoConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for RepoConfig
impl Serialize for RepoConfig
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 RepoConfig
impl RefUnwindSafe for RepoConfig
impl Send for RepoConfig
impl Sync for RepoConfig
impl Unpin for RepoConfig
impl UnsafeUnpin for RepoConfig
impl UnwindSafe for RepoConfig
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