pub struct ViewsService { /* private fields */ }Expand description
Jenkins views (core) APIs.
Implementations§
Source§impl ViewsService
impl ViewsService
Sourcepub async fn get(
&self,
name: impl Into<ViewName>,
tree: Option<&str>,
) -> Result<Value, Error>
pub async fn get( &self, name: impl Into<ViewName>, tree: Option<&str>, ) -> Result<Value, Error>
GET /view/<name>/api/json
Sourcepub async fn create_from_xml(
&self,
name: impl Into<ViewName>,
xml: impl Into<Vec<u8>>,
) -> Result<(), Error>
pub async fn create_from_xml( &self, name: impl Into<ViewName>, xml: impl Into<Vec<u8>>, ) -> Result<(), Error>
POST /createView?name=<name> with XML body.
Sourcepub async fn delete(&self, name: impl Into<ViewName>) -> Result<(), Error>
pub async fn delete(&self, name: impl Into<ViewName>) -> Result<(), Error>
POST /view/<name>/doDelete
Sourcepub async fn rename(
&self,
name: impl Into<ViewName>,
new_name: impl Into<ViewName>,
) -> Result<(), Error>
pub async fn rename( &self, name: impl Into<ViewName>, new_name: impl Into<ViewName>, ) -> Result<(), Error>
POST /view/<name>/doRename?newName=<new_name>
Sourcepub async fn add_job(
&self,
view: impl Into<ViewName>,
job: impl Into<JobPath>,
) -> Result<(), Error>
pub async fn add_job( &self, view: impl Into<ViewName>, job: impl Into<JobPath>, ) -> Result<(), Error>
POST /view/<view>/addJobToView?name=<job>
Sourcepub async fn remove_job(
&self,
view: impl Into<ViewName>,
job: impl Into<JobPath>,
) -> Result<(), Error>
pub async fn remove_job( &self, view: impl Into<ViewName>, job: impl Into<JobPath>, ) -> Result<(), Error>
POST /view/<view>/removeJobFromView?name=<job>
Trait Implementations§
Source§impl Clone for ViewsService
impl Clone for ViewsService
Source§fn clone(&self) -> ViewsService
fn clone(&self) -> ViewsService
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ViewsService
impl !RefUnwindSafe for ViewsService
impl Send for ViewsService
impl Sync for ViewsService
impl Unpin for ViewsService
impl !UnwindSafe for ViewsService
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