added comments

This commit is contained in:
Thomas Eppers 2021-09-07 16:48:14 +02:00
parent 17bea12b4e
commit e0644cd2ae
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,7 @@ impl Tags {
Ok(name) Ok(name)
} }
/// returns tags of next page
pub fn next_page(&self) -> Result<Self, Error> { pub fn next_page(&self) -> Result<Self, Error> {
match &self.next_page { match &self.next_page {
Some(url) => Self::with_url(url), 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> { pub fn prev_page(&self) -> Result<Self, Error> {
match &self.prev_page { match &self.prev_page {
Some(url) => Self::with_url(url), Some(url) => Self::with_url(url),

View File

@ -54,6 +54,7 @@ impl TagList {
} }
} }
/// display next page if possible
pub fn next_page(&mut self) { pub fn next_page(&mut self) {
match &self.typ { match &self.typ {
Type::Status(_) => (), Type::Status(_) => (),
@ -64,6 +65,7 @@ impl TagList {
} }
} }
/// display previous page if possible
pub fn prev_page(&mut self) { pub fn prev_page(&mut self) {
match &self.typ { match &self.typ {
Type::Status(_) => (), Type::Status(_) => (),