pub struct Request { /* private fields */ }Expand description
Represents the request for the Get Messages Zulip API endpoint.
See get-messages for details.
Implementations§
Source§impl Request
impl Request
Sourcepub fn set_anchor(&mut self, val: Anchor)
pub fn set_anchor(&mut self, val: Anchor)
Sets the Request anchor.
Sourcepub fn unset_anchor(&mut self) -> Option<Anchor>
pub fn unset_anchor(&mut self) -> Option<Anchor>
Unsets the Request anchor.
Sourcepub fn with_anchor(self, val: Anchor) -> Self
pub fn with_anchor(self, val: Anchor) -> Self
Builder function that sets the Request anchor.
Sourcepub const fn include_anchor(&self) -> Option<bool>
pub const fn include_anchor(&self) -> Option<bool>
Gets the Request include_anchor.
Sourcepub fn set_include_anchor(&mut self, val: bool)
pub fn set_include_anchor(&mut self, val: bool)
Sets the Request include_anchor.
Sourcepub fn unset_include_anchor(&mut self) -> Option<bool>
pub fn unset_include_anchor(&mut self) -> Option<bool>
Unsets the Request include_anchor.
Sourcepub fn with_include_anchor(self, val: bool) -> Self
pub fn with_include_anchor(self, val: bool) -> Self
Builder function that sets the Request include_anchor.
Sourcepub const fn num_before(&self) -> Option<u64>
pub const fn num_before(&self) -> Option<u64>
Gets the Request num_before.
Sourcepub fn set_num_before(&mut self, val: u64)
pub fn set_num_before(&mut self, val: u64)
Sets the Request num_before.
Sourcepub fn unset_num_before(&mut self) -> Option<u64>
pub fn unset_num_before(&mut self) -> Option<u64>
Unsets the Request num_before.
Sourcepub fn with_num_before(self, val: u64) -> Self
pub fn with_num_before(self, val: u64) -> Self
Builder function that sets the Request num_before.
Sourcepub fn set_num_after(&mut self, val: u64)
pub fn set_num_after(&mut self, val: u64)
Sets the Request num_after.
Sourcepub fn unset_num_after(&mut self) -> Option<u64>
pub fn unset_num_after(&mut self) -> Option<u64>
Unsets the Request num_after.
Sourcepub fn with_num_after(self, val: u64) -> Self
pub fn with_num_after(self, val: u64) -> Self
Builder function that sets the Request num_after.
Sourcepub const fn client_gravatar(&self) -> Option<bool>
pub const fn client_gravatar(&self) -> Option<bool>
Gets the Request client_gravatar.
Sourcepub fn set_client_gravatar(&mut self, val: bool)
pub fn set_client_gravatar(&mut self, val: bool)
Sets the Request client_gravatar.
Sourcepub fn unset_client_gravatar(&mut self) -> Option<bool>
pub fn unset_client_gravatar(&mut self) -> Option<bool>
Unsets the Request client_gravatar.
Sourcepub fn with_client_gravatar(self, val: bool) -> Self
pub fn with_client_gravatar(self, val: bool) -> Self
Builder function that sets the Request client_gravatar.
Sourcepub const fn apply_markdown(&self) -> Option<bool>
pub const fn apply_markdown(&self) -> Option<bool>
Gets the Request apply_markdown.
Sourcepub fn set_apply_markdown(&mut self, val: bool)
pub fn set_apply_markdown(&mut self, val: bool)
Sets the Request apply_markdown.
Sourcepub fn unset_apply_markdown(&mut self) -> Option<bool>
pub fn unset_apply_markdown(&mut self) -> Option<bool>
Unsets the Request apply_markdown.
Sourcepub fn with_apply_markdown(self, val: bool) -> Self
pub fn with_apply_markdown(self, val: bool) -> Self
Builder function that sets the Request apply_markdown.
Sourcepub const fn allow_empty_topic_name(&self) -> Option<bool>
pub const fn allow_empty_topic_name(&self) -> Option<bool>
Gets the Request allow_empty_topic_name.
Sourcepub fn set_allow_empty_topic_name(&mut self, val: bool)
pub fn set_allow_empty_topic_name(&mut self, val: bool)
Sets the Request allow_empty_topic_name.
Sourcepub fn unset_allow_empty_topic_name(&mut self) -> Option<bool>
pub fn unset_allow_empty_topic_name(&mut self) -> Option<bool>
Unsets the Request allow_empty_topic_name.
Sourcepub fn with_allow_empty_topic_name(self, val: bool) -> Self
pub fn with_allow_empty_topic_name(self, val: bool) -> Self
Builder function that sets the Request allow_empty_topic_name.
Source§impl Request
impl Request
Sourcepub fn set_narrow(&mut self, val: Narrow)
pub fn set_narrow(&mut self, val: Narrow)
Sets the Request narrow.
Sourcepub fn unset_narrow(&mut self) -> Option<Narrow>
pub fn unset_narrow(&mut self) -> Option<Narrow>
Unsets the Request narrow.
Sourcepub fn with_narrow(self, val: Narrow) -> Self
pub fn with_narrow(self, val: Narrow) -> Self
Builder function that sets the Request narrow.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Request
impl StructuralPartialEq for 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.