|
|
|
@ -53,17 +53,17 @@ pub struct StatusesRequest<'a> { |
|
|
|
|
exclude_reblogs: bool, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
impl<'a> Into<Option<StatusesRequest<'a>>> for &'a mut StatusesRequest<'a> { |
|
|
|
|
fn into(self) -> Option<StatusesRequest<'a>> { |
|
|
|
|
impl<'a> From<&'a mut StatusesRequest<'a>> for Option<StatusesRequest<'a>> { |
|
|
|
|
fn from(req: &'a mut StatusesRequest<'a>) -> Option<StatusesRequest<'a>> { |
|
|
|
|
Some(StatusesRequest { |
|
|
|
|
only_media: self.only_media, |
|
|
|
|
exclude_replies: self.exclude_replies, |
|
|
|
|
pinned: self.pinned, |
|
|
|
|
max_id: self.max_id.clone(), |
|
|
|
|
since_id: self.since_id.clone(), |
|
|
|
|
limit: self.limit, |
|
|
|
|
min_id: self.min_id.clone(), |
|
|
|
|
exclude_reblogs: self.exclude_reblogs, |
|
|
|
|
only_media: req.only_media, |
|
|
|
|
exclude_replies: req.exclude_replies, |
|
|
|
|
pinned: req.pinned, |
|
|
|
|
max_id: req.max_id.clone(), |
|
|
|
|
since_id: req.since_id.clone(), |
|
|
|
|
limit: req.limit, |
|
|
|
|
min_id: req.min_id.clone(), |
|
|
|
|
exclude_reblogs: req.exclude_reblogs, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|