pub struct PackageBuilder<'a> {
pub client: &'a Client,
pub project: String,
pub package: String,
}Fields§
§client: &'a Client§project: String§package: StringImplementations§
Source§impl<'a> PackageBuilder<'a>
impl<'a> PackageBuilder<'a>
pub async fn jobstatus( &self, repository: &str, arch: &str, ) -> Result<JobStatus, Error>
pub async fn history( &self, repository: &str, arch: &str, ) -> Result<BuildHistory, Error>
pub async fn status( &self, repository: &str, arch: &str, ) -> Result<BuildStatus, Error>
pub async fn binary_file( &self, repository: &str, arch: &str, file: &str, ) -> Result<impl Stream<Item = Result<Bytes, Error>> + use<>, Error>
pub async fn binaries( &self, repository: &str, arch: &str, ) -> Result<BinaryList, Error>
pub async fn rebuild(&self) -> Result<(), Error>
pub fn log(&self, repository: &str, arch: &str) -> PackageLog<'a>
pub async fn create(&self) -> Result<(), Error>
pub async fn delete(&self) -> Result<(), Error>
pub async fn revisions(&self) -> Result<RevisionList, Error>
pub async fn list(&self, rev: Option<&str>) -> Result<SourceDirectory, Error>
pub async fn list_meta( &self, rev: Option<&str>, ) -> Result<SourceDirectory, Error>
pub async fn meta(&self) -> Result<PackageMeta, Error>
pub async fn source_file( &self, file: &str, ) -> Result<impl Stream<Item = Result<Bytes, Error>>, Error>
pub async fn upload_for_commit<T: Into<Body>>( &self, file: &str, data: T, ) -> Result<(), Error>
pub async fn commit( &self, filelist: &CommitFileList, options: &CommitOptions, ) -> Result<CommitResult, Error>
pub async fn branch( &self, options: &BranchOptions, ) -> Result<BranchStatus, Error>
pub async fn result(&self) -> Result<ResultList, Error>
Trait Implementations§
Source§impl<'a> Clone for PackageBuilder<'a>
impl<'a> Clone for PackageBuilder<'a>
Source§fn clone(&self) -> PackageBuilder<'a>
fn clone(&self) -> PackageBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for PackageBuilder<'a>
impl<'a> !RefUnwindSafe for PackageBuilder<'a>
impl<'a> Send for PackageBuilder<'a>
impl<'a> Sync for PackageBuilder<'a>
impl<'a> Unpin for PackageBuilder<'a>
impl<'a> UnsafeUnpin for PackageBuilder<'a>
impl<'a> !UnwindSafe for PackageBuilder<'a>
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