pub struct Catalogue {
pub repositories: Vec<Repository>,
pub releases: Vec<Release>,
}Expand description
What /-/releases answers: the roster and the rows, in one document.
One fetch, because it is one question — what is in this server — and two fetches would be two chances for the page to render half an answer.
It is an object and not an array, and that is a wire change with a reason: the array could only ever carry artifacts, so a server with repositories and no artifacts had no way to say so.
Fields§
§repositories: Vec<Repository>Every repository a stranger may list. Already ordered by the caller.
releases: Vec<Release>The newest version of each package, already ranked and ordered by the caller. See the module note on why this crate ranks nothing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Catalogue
impl<'de> Deserialize<'de> for Catalogue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Catalogue
impl StructuralPartialEq for Catalogue
Auto Trait Implementations§
impl Freeze for Catalogue
impl RefUnwindSafe for Catalogue
impl Send for Catalogue
impl Sync for Catalogue
impl Unpin for Catalogue
impl UnsafeUnpin for Catalogue
impl UnwindSafe for Catalogue
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