Struct gerritlib::changes::ChangeInfos
[−]
[src]
pub struct ChangeInfos { pub json: Option<Value>, // some fields omitted }
Fields
json: Option<Value>
Methods
impl ChangeInfos
[src]
fn new() -> ChangeInfos
creates a new ChangeInfos instance. ChangeInfos.json is None
fn new_with_data(json: Option<Value>) -> ChangeInfos
creates new ChangeInfos object with an initial ChangeInfos.json value
fn filter_key(&mut self, r: &str) -> &mut Self
add a regular expression filter for keys
The filter needs to be resetted through filter_reset
.
fn filter_val(&mut self, r: String) -> &mut Self
add a regular expression filter for values
The filter needs to be resetted through filter_reset
.
fn filter_reset(&mut self) -> &mut Self
reset key and value filter
fn as_string_reg(&self, selectors: &[String]) -> String
fn fieldslist(&self) -> (usize, HashMap<String, usize>)
prints all selectable fields os a search string
returns two values. First one is the count of returned json objects and second value is a
HashMap
fn raw(&self) -> String
return the string in machinereadable format
fn human(&self) -> String
return in human readable form
fn to_entities(&self) -> GGRResult<Vec<ChangeInfo>>
fn entity_from_commit(&self, commit: &str) -> GGRResult<ChangeInfo>
fn project_tip(&self) -> GGRResult<HashMap<String, String>>
returns a HashMap with project and tip of a topic.changeset
Trait Implementations
impl Default for ChangeInfos
[src]
fn default() -> ChangeInfos
Returns the "default value" for a type. Read more