pub struct LibRb { /* private fields */ }Implementations§
Source§impl LibRb
impl LibRb
Sourcepub fn new_aurbuild<S: AsRef<str>>(&self, pkg_name: S) -> AURBuild<'_>
pub fn new_aurbuild<S: AsRef<str>>(&self, pkg_name: S) -> AURBuild<'_>
Return a new AURBuild which allows you to create build AUR jobs
Sourcepub fn auth_from_conf(&self) -> Authorization
pub fn auth_from_conf(&self) -> Authorization
Return Authorization created from selfs config
Sourcepub async fn list_jobs(
&self,
limit: i32,
) -> Result<RequestResult<ListJobs>, Error>
pub async fn list_jobs( &self, limit: i32, ) -> Result<RequestResult<ListJobs>, Error>
List all running and past jobs. limit indicates the limit how
much to display
Sourcepub async fn job_info(&self, job_id: u32) -> Result<RequestResult<Info>, Error>
pub async fn job_info(&self, job_id: u32) -> Result<RequestResult<Info>, Error>
Gets information about a job
Sourcepub async fn add_job(
&self,
job_type: Type,
upload_type: UploadType,
args: HashMap<String, String>,
disable_ccache: bool,
) -> Result<RequestResult<AddJob>, Error>
pub async fn add_job( &self, job_type: Type, upload_type: UploadType, args: HashMap<String, String>, disable_ccache: bool, ) -> Result<RequestResult<AddJob>, Error>
Creates and adds a new job
Auto Trait Implementations§
impl Freeze for LibRb
impl RefUnwindSafe for LibRb
impl Send for LibRb
impl Sync for LibRb
impl Unpin for LibRb
impl UnsafeUnpin for LibRb
impl UnwindSafe for LibRb
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