pub struct Response { /* private fields */ }Expand description
Represents the response for the Get Messages Zulip API endpoint.
See get-messages for details.
Implementations§
Source§impl Response
impl Response
Sourcepub fn set_anchor(&mut self, val: Anchor)
pub fn set_anchor(&mut self, val: Anchor)
Sets the Response anchor.
Sourcepub fn unset_anchor(&mut self) -> Option<Anchor>
pub fn unset_anchor(&mut self) -> Option<Anchor>
Unsets the Response anchor.
Sourcepub fn with_anchor(self, val: Anchor) -> Self
pub fn with_anchor(self, val: Anchor) -> Self
Builder function that sets the Response anchor.
Sourcepub const fn found_newest(&self) -> Option<bool>
pub const fn found_newest(&self) -> Option<bool>
Gets the Response found_newest.
Sourcepub fn set_found_newest(&mut self, val: bool)
pub fn set_found_newest(&mut self, val: bool)
Sets the Response found_newest.
Sourcepub fn unset_found_newest(&mut self) -> Option<bool>
pub fn unset_found_newest(&mut self) -> Option<bool>
Unsets the Response found_newest.
Sourcepub fn with_found_newest(self, val: bool) -> Self
pub fn with_found_newest(self, val: bool) -> Self
Builder function that sets the Response found_newest.
Sourcepub const fn found_oldest(&self) -> Option<bool>
pub const fn found_oldest(&self) -> Option<bool>
Gets the Response found_oldest.
Sourcepub fn set_found_oldest(&mut self, val: bool)
pub fn set_found_oldest(&mut self, val: bool)
Sets the Response found_oldest.
Sourcepub fn unset_found_oldest(&mut self) -> Option<bool>
pub fn unset_found_oldest(&mut self) -> Option<bool>
Unsets the Response found_oldest.
Sourcepub fn with_found_oldest(self, val: bool) -> Self
pub fn with_found_oldest(self, val: bool) -> Self
Builder function that sets the Response found_oldest.
Sourcepub const fn found_anchor(&self) -> Option<bool>
pub const fn found_anchor(&self) -> Option<bool>
Gets the Response found_anchor.
Sourcepub fn set_found_anchor(&mut self, val: bool)
pub fn set_found_anchor(&mut self, val: bool)
Sets the Response found_anchor.
Sourcepub fn unset_found_anchor(&mut self) -> Option<bool>
pub fn unset_found_anchor(&mut self) -> Option<bool>
Unsets the Response found_anchor.
Sourcepub fn with_found_anchor(self, val: bool) -> Self
pub fn with_found_anchor(self, val: bool) -> Self
Builder function that sets the Response found_anchor.
Sourcepub const fn history_limited(&self) -> Option<bool>
pub const fn history_limited(&self) -> Option<bool>
Gets the Response history_limited.
Sourcepub fn set_history_limited(&mut self, val: bool)
pub fn set_history_limited(&mut self, val: bool)
Sets the Response history_limited.
Sourcepub fn unset_history_limited(&mut self) -> Option<bool>
pub fn unset_history_limited(&mut self) -> Option<bool>
Unsets the Response history_limited.
Sourcepub fn with_history_limited(self, val: bool) -> Self
pub fn with_history_limited(self, val: bool) -> Self
Builder function that sets the Response history_limited.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
Source§impl Response for Response
impl Response for Response
Source§fn with_msg<'a, C: Into<Cow<'a, str>>>(self, msg: C) -> Self
fn with_msg<'a, C: Into<Cow<'a, str>>>(self, msg: C) -> Self
msg field.Source§fn set_result(&mut self, result: ApiResult)
fn set_result(&mut self, result: ApiResult)
result field.Source§fn with_result(self, result: ApiResult) -> Self
fn with_result(self, result: ApiResult) -> Self
result field.Source§fn with_code(self, code: ErrorCode) -> Self
fn with_code(self, code: ErrorCode) -> Self
code field.Source§fn ignored_parameters_unsupported(&self) -> Option<&[String]>
fn ignored_parameters_unsupported(&self) -> Option<&[String]>
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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.