pub struct Manifest {
pub packages: Vec<PackageInfo>,
pub schemas: BTreeMap<String, GameSchema>,
}Expand description
The body of GET /packages.
Fields§
§packages: Vec<PackageInfo>§schemas: BTreeMap<String, GameSchema>By game id, one for every game published, since a game without a schema publishes nothing; absent from manifests written before 2026-10-25.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn visible_to(self, grants: &[String]) -> Self
pub fn visible_to(self, grants: &[String]) -> Self
Keeps public plus the directories named in grants.
pub fn for_game(self, game: &str) -> Self
pub fn public_only(self) -> Self
Sourcepub fn get(&self, game: &str, reference: &PackageRef) -> Option<&PackageInfo>
pub fn get(&self, game: &str, reference: &PackageRef) -> Option<&PackageInfo>
Within one game, since every game may publish the same directory/name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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