pub struct Repository {
pub name: String,
pub format: String,
pub packages: usize,
}Expand description
One public repository, as a stranger may see it.
★ Why this exists beside Release: a repository with nothing in it
produced NO rows, so a freshly installed holger — or one whose store is
still empty, which is what holger.rs is today — answered /-/releases with
[] and the front page said “Nothing published yet.” and named nothing at
all. That is a true sentence about the artifacts and a useless page about
the server: the repositories are configured, they are public, and they are
the first thing a visitor needs in order to point a package manager
anywhere.
So the roster is listed whether or not anything has been published into it.
Fields§
§name: StringThe repository’s name, which is also its first path segment on this server.
format: StringThe format it speaks — cargo, maven, npm, generic. Verbatim from
the server; never mapped to a prettier word here, because the word the
server uses is the word the operator configured.
packages: usizeHow many distinct packages the listing found in it. 0 is an answer and
is printed as one — an empty repository is a normal state.
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more