Struct hubcaps::issues::IssueLabels
[−]
[src]
pub struct IssueLabels<'a> { /* fields omitted */ }
Methods
impl<'a> IssueLabels<'a>
[src]
fn new<O, R>(github: &'a Github<'a>,
owner: O,
repo: R,
number: u64)
-> IssueLabels<'a> where O: Into<String>, R: Into<String>
owner: O,
repo: R,
number: u64)
-> IssueLabels<'a> where O: Into<String>, R: Into<String>
fn add(&self, labels: Vec<&str>) -> Result<Vec<Label>>
add a set of labels to this issue ref
fn remove(&self, label: &str) -> Result<()>
remove a label from this issue
fn set(&self, labels: Vec<&str>) -> Result<Vec<Label>>
replace all labels associated with this issue with a new set. providing an empty set of labels is the same as clearing the current labels
fn clear(&self) -> Result<()>
remove all labels from an issue