added comments
This commit is contained in:
parent
17bea12b4e
commit
e0644cd2ae
@ -87,6 +87,7 @@ impl Tags {
|
||||
Ok(name)
|
||||
}
|
||||
|
||||
/// returns tags of next page
|
||||
pub fn next_page(&self) -> Result<Self, Error> {
|
||||
match &self.next_page {
|
||||
Some(url) => Self::with_url(url),
|
||||
@ -94,6 +95,7 @@ impl Tags {
|
||||
}
|
||||
}
|
||||
|
||||
/// returns tags of previous page
|
||||
pub fn prev_page(&self) -> Result<Self, Error> {
|
||||
match &self.prev_page {
|
||||
Some(url) => Self::with_url(url),
|
||||
|
@ -54,6 +54,7 @@ impl TagList {
|
||||
}
|
||||
}
|
||||
|
||||
/// display next page if possible
|
||||
pub fn next_page(&mut self) {
|
||||
match &self.typ {
|
||||
Type::Status(_) => (),
|
||||
@ -64,6 +65,7 @@ impl TagList {
|
||||
}
|
||||
}
|
||||
|
||||
/// display previous page if possible
|
||||
pub fn prev_page(&mut self) {
|
||||
match &self.typ {
|
||||
Type::Status(_) => (),
|
||||
|
Loading…
Reference in New Issue
Block a user