pub struct PaperMcClient { /* private fields */ }Implementations§
Source§impl PaperMcClient
impl PaperMcClient
Source§impl PaperMcClient
impl PaperMcClient
pub fn new(url: &str) -> Self
pub fn with_middleware<M: Middleware + 'static>(self, middleware: M) -> Self
Sourcepub fn projects(&self) -> ProjectsRequest<'_>
pub fn projects(&self) -> ProjectsRequest<'_>
Gets a list of all available projects.
Sourcepub fn project(&self, project: &str) -> ProjectRequest<'_>
pub fn project(&self, project: &str) -> ProjectRequest<'_>
Gets information about a project.
Sourcepub fn version(&self, project: &str, version: &str) -> VersionRequest<'_>
pub fn version(&self, project: &str, version: &str) -> VersionRequest<'_>
Gets information about a version.
Sourcepub fn builds(&self, project: &str, version: &str) -> BuildsRequest<'_>
pub fn builds(&self, project: &str, version: &str) -> BuildsRequest<'_>
Gets all available builds for a project’s version.
Sourcepub fn build(
&self,
project: &str,
version: &str,
build: i64,
) -> BuildRequest<'_>
pub fn build( &self, project: &str, version: &str, build: i64, ) -> BuildRequest<'_>
Gets information related to a specific build.
Sourcepub fn download(&self, args: DownloadRequired<'_>) -> DownloadRequest<'_>
pub fn download(&self, args: DownloadRequired<'_>) -> DownloadRequest<'_>
Downloads the given file from a build’s data.
Sourcepub fn family(&self, project: &str, family: &str) -> FamilyRequest<'_>
pub fn family(&self, project: &str, family: &str) -> FamilyRequest<'_>
Gets information about a project’s version group.
Sourcepub fn family_builds(
&self,
project: &str,
family: &str,
) -> FamilyBuildsRequest<'_>
pub fn family_builds( &self, project: &str, family: &str, ) -> FamilyBuildsRequest<'_>
Gets all available builds for a project’s version group.
Auto Trait Implementations§
impl Freeze for PaperMcClient
impl !RefUnwindSafe for PaperMcClient
impl Send for PaperMcClient
impl Sync for PaperMcClient
impl Unpin for PaperMcClient
impl !UnwindSafe for PaperMcClient
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