pub struct Response { /* private fields */ }Expand description
Represents the request for the Update Message Flags for Narrow Zulip API endpoint.
See update-message-flags-for-narrow for details.
Implementations§
Source§impl Response
impl Response
Sourcepub const fn processed_count(&self) -> Option<u64>
pub const fn processed_count(&self) -> Option<u64>
Gets the Response processed_count.
The number of messages that were within the
update range (at most num_before + 1 + num_after).
Sourcepub fn set_processed_count(&mut self, val: u64)
pub fn set_processed_count(&mut self, val: u64)
Sets the Response processed_count.
The number of messages that were within the
update range (at most num_before + 1 + num_after).
Sourcepub fn unset_processed_count(&mut self) -> Option<u64>
pub fn unset_processed_count(&mut self) -> Option<u64>
Unsets the Response processed_count.
The number of messages that were within the
update range (at most num_before + 1 + num_after).
Sourcepub fn with_processed_count(self, val: u64) -> Self
pub fn with_processed_count(self, val: u64) -> Self
Builder function that sets the Response processed_count.
The number of messages that were within the
update range (at most num_before + 1 + num_after).
Sourcepub const fn updated_count(&self) -> Option<u64>
pub const fn updated_count(&self) -> Option<u64>
Gets the Response updated_count.
The number of messages where the flag’s
value was changed (at most processed_count).
Sourcepub fn set_updated_count(&mut self, val: u64)
pub fn set_updated_count(&mut self, val: u64)
Sets the Response updated_count.
The number of messages where the flag’s
value was changed (at most processed_count).
Sourcepub fn unset_updated_count(&mut self) -> Option<u64>
pub fn unset_updated_count(&mut self) -> Option<u64>
Unsets the Response updated_count.
The number of messages where the flag’s
value was changed (at most processed_count).
Sourcepub fn with_updated_count(self, val: u64) -> Self
pub fn with_updated_count(self, val: u64) -> Self
Builder function that sets the Response updated_count.
The number of messages where the flag’s
value was changed (at most processed_count).
Sourcepub const fn first_processed_id(&self) -> Option<u64>
pub const fn first_processed_id(&self) -> Option<u64>
Gets the Response first_processed_id.
The ID of the oldest message within the
update range, or null if the range was empty.
Sourcepub fn set_first_processed_id(&mut self, val: u64)
pub fn set_first_processed_id(&mut self, val: u64)
Sets the Response first_processed_id.
The ID of the oldest message within the
update range, or null if the range was empty.
Sourcepub fn unset_first_processed_id(&mut self) -> Option<u64>
pub fn unset_first_processed_id(&mut self) -> Option<u64>
Unsets the Response first_processed_id.
The ID of the oldest message within the
update range, or null if the range was empty.
Sourcepub fn with_first_processed_id(self, val: u64) -> Self
pub fn with_first_processed_id(self, val: u64) -> Self
Builder function that sets the Response first_processed_id.
The ID of the oldest message within the
update range, or null if the range was empty.
Sourcepub const fn last_processed_id(&self) -> Option<u64>
pub const fn last_processed_id(&self) -> Option<u64>
Gets the Response last_processed_id.
The ID of the newest message within the
update range, or null if the range was empty.
Sourcepub fn set_last_processed_id(&mut self, val: u64)
pub fn set_last_processed_id(&mut self, val: u64)
Sets the Response last_processed_id.
The ID of the newest message within the
update range, or null if the range was empty.
Sourcepub fn unset_last_processed_id(&mut self) -> Option<u64>
pub fn unset_last_processed_id(&mut self) -> Option<u64>
Unsets the Response last_processed_id.
The ID of the newest message within the
update range, or null if the range was empty.
Sourcepub fn with_last_processed_id(self, val: u64) -> Self
pub fn with_last_processed_id(self, val: u64) -> Self
Builder function that sets the Response last_processed_id.
The ID of the newest message within the
update range, or null if the range was empty.
Sourcepub const fn found_oldest(&self) -> Option<bool>
pub const fn found_oldest(&self) -> Option<bool>
Gets the Response found_oldest.
Whether the update range reached backward
far enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
first_processed_id).
Sourcepub fn set_found_oldest(&mut self, val: bool)
pub fn set_found_oldest(&mut self, val: bool)
Sets the Response found_oldest.
Whether the update range reached backward
far enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
first_processed_id).
Sourcepub fn unset_found_oldest(&mut self) -> Option<bool>
pub fn unset_found_oldest(&mut self) -> Option<bool>
Unsets the Response found_oldest.
Whether the update range reached backward
far enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
first_processed_id).
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.
Whether the update range reached backward
far enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
first_processed_id).
Sourcepub const fn found_newest(&self) -> Option<bool>
pub const fn found_newest(&self) -> Option<bool>
Gets the Response found_newest.
Whether the update range reached forward far
enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
last_processed_id).
Sourcepub fn set_found_newest(&mut self, val: bool)
pub fn set_found_newest(&mut self, val: bool)
Sets the Response found_newest.
Whether the update range reached forward far
enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
last_processed_id).
Sourcepub fn unset_found_newest(&mut self) -> Option<bool>
pub fn unset_found_newest(&mut self) -> Option<bool>
Unsets the Response found_newest.
Whether the update range reached forward far
enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
last_processed_id).
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.
Whether the update range reached forward far
enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
last_processed_id).
Source§impl Response
impl Response
Sourcepub fn ignored_because_not_subscribed_channels(&self) -> Option<&[u64]>
pub fn ignored_because_not_subscribed_channels(&self) -> Option<&[u64]>
Gets the Response ignored_because_not_subscribed_channels.
Zulip has an invariant that all unread messages must be in channels
the user is subscribed to. This field will contain a list of the
channels whose messages were skipped to mark as unread because the
user is not subscribed to them.
Only present if the flag is read and the operation is remove.
Changes: New in Zulip 10.0 (feature level 355).
Sourcepub fn set_ignored_because_not_subscribed_channels<'a, C: Into<Cow<'a, [u64]>>>(
&mut self,
val: C,
)
pub fn set_ignored_because_not_subscribed_channels<'a, C: Into<Cow<'a, [u64]>>>( &mut self, val: C, )
Sets the Response ignored_because_not_subscribed_channels.
Zulip has an invariant that all unread messages must be in channels
the user is subscribed to. This field will contain a list of the
channels whose messages were skipped to mark as unread because the
user is not subscribed to them.
Only present if the flag is read and the operation is remove.
Changes: New in Zulip 10.0 (feature level 355).
Sourcepub fn unset_ignored_because_not_subscribed_channels(
&mut self,
) -> Option<Vec<u64>>
pub fn unset_ignored_because_not_subscribed_channels( &mut self, ) -> Option<Vec<u64>>
Unsets the Response ignored_because_not_subscribed_channels.
Zulip has an invariant that all unread messages must be in channels
the user is subscribed to. This field will contain a list of the
channels whose messages were skipped to mark as unread because the
user is not subscribed to them.
Only present if the flag is read and the operation is remove.
Changes: New in Zulip 10.0 (feature level 355).
Sourcepub fn with_ignored_because_not_subscribed_channels<'a, C: Into<Cow<'a, [u64]>>>(
self,
val: C,
) -> Self
pub fn with_ignored_because_not_subscribed_channels<'a, C: Into<Cow<'a, [u64]>>>( self, val: C, ) -> Self
Builder function that sets the Response ignored_because_not_subscribed_channels.
Zulip has an invariant that all unread messages must be in channels
the user is subscribed to. This field will contain a list of the
channels whose messages were skipped to mark as unread because the
user is not subscribed to them.
Only present if the flag is read and the operation is remove.
Changes: New in Zulip 10.0 (feature level 355).
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.