pub struct Request {
pub note_id: Id<Note>,
pub limit: Option<u8>,
pub since_id: Option<Id<Note>>,
pub until_id: Option<Id<Note>>,
}
Fields§
§note_id: Id<Note>
§limit: Option<u8>
1 .. 100
since_id: Option<Id<Note>>
§until_id: Option<Id<Note>>
Implementations§
Source§impl Request
impl Request
Sourcepub fn builder() -> RequestBuilder<((), (), (), ())>
pub fn builder() -> RequestBuilder<((), (), (), ())>
Create a builder for building Request
.
On the builder, call .note_id(...)
, .limit(...)
(optional), .since_id(...)
(optional), .until_id(...)
(optional) to set the values of the fields (they accept Into
values).
Finally, call .build()
to create the instance of Request
.
Trait Implementations§
Source§impl PaginationRequest for Request
impl PaginationRequest for Request
Source§fn set_since_id(&mut self, since_id: <Note as PaginationItem>::Id)
fn set_since_id(&mut self, since_id: <Note as PaginationItem>::Id)
Sets the
since_id
field of the request.Source§fn set_until_id(&mut self, until_id: <Note as PaginationItem>::Id)
fn set_until_id(&mut self, until_id: <Note as PaginationItem>::Id)
Sets the
until_id
field of the request.Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more