pub struct Request { /* private fields */ }Expand description
Represents the response for the Mark Topic as Read Zulip API endpoint.
See mark-topic-as-read for details.
Implementations§
Source§impl Request
impl Request
Sourcepub const fn stream_id(&self) -> u64
pub const fn stream_id(&self) -> u64
Gets the Request stream_id.
The ID of the channel to access.
Sourcepub fn set_stream_id(&mut self, val: u64)
pub fn set_stream_id(&mut self, val: u64)
Sets the Request stream_id.
The ID of the channel to access.
Sourcepub fn with_stream_id(self, val: u64) -> Self
pub fn with_stream_id(self, val: u64) -> Self
Builder function that sets the Request stream_id.
The ID of the channel to access.
Source§impl Request
impl Request
Sourcepub fn topic_name(&self) -> &str
pub fn topic_name(&self) -> &str
Gets the Request topic_name.
The name of the topic whose messages should be marked as read.
Note: When the value of realm_empty_topic_display_name found in
the POST /register response is used for this
parameter, it is interpreted as an empty string.
Changes: Before Zulip 10.0 (feature level 334), empty string
was not a valid topic name for channel messages.
Sourcepub fn set_topic_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_topic_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the Request topic_name.
The name of the topic whose messages should be marked as read.
Note: When the value of realm_empty_topic_display_name found in
the POST /register response is used for this
parameter, it is interpreted as an empty string.
Changes: Before Zulip 10.0 (feature level 334), empty string
was not a valid topic name for channel messages.
Sourcepub fn with_topic_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_topic_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the Request topic_name.
The name of the topic whose messages should be marked as read.
Note: When the value of realm_empty_topic_display_name found in
the POST /register response is used for this
parameter, it is interpreted as an empty string.
Changes: Before Zulip 10.0 (feature level 334), empty string
was not a valid topic name for channel messages.
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.