pub struct Request { /* private fields */ }Expand description
Represents the request for the Get Message Zulip API endpoint.
See get-message for details.
Implementations§
Source§impl Request
impl Request
Sourcepub const fn message_id(&self) -> u64
pub const fn message_id(&self) -> u64
Gets the Request message_id.
The target message’s ID.
Sourcepub fn set_message_id(&mut self, val: u64)
pub fn set_message_id(&mut self, val: u64)
Sets the Request message_id.
The target message’s ID.
Sourcepub fn with_message_id(self, val: u64) -> Self
pub fn with_message_id(self, val: u64) -> Self
Builder function that sets the Request message_id.
The target message’s ID.
Source§impl Request
impl Request
Sourcepub const fn apply_markdown(&self) -> Option<bool>
pub const fn apply_markdown(&self) -> Option<bool>
Gets the Request apply_markdown.
If true, message content is returned in the rendered HTML
format. If false, message content is returned in the raw
Zulip-flavored Markdown format text that user entered.
Changes: New in Zulip 5.0 (feature level 120).
Sourcepub fn set_apply_markdown(&mut self, val: bool)
pub fn set_apply_markdown(&mut self, val: bool)
Sets the Request apply_markdown.
If true, message content is returned in the rendered HTML
format. If false, message content is returned in the raw
Zulip-flavored Markdown format text that user entered.
Changes: New in Zulip 5.0 (feature level 120).
Sourcepub fn unset_apply_markdown(&mut self) -> Option<bool>
pub fn unset_apply_markdown(&mut self) -> Option<bool>
Unsets the Request apply_markdown.
If true, message content is returned in the rendered HTML
format. If false, message content is returned in the raw
Zulip-flavored Markdown format text that user entered.
Changes: New in Zulip 5.0 (feature level 120).
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.
If true, message content is returned in the rendered HTML
format. If false, message content is returned in the raw
Zulip-flavored Markdown format text that user entered.
Changes: New in Zulip 5.0 (feature level 120).
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.
Whether the client supports processing the empty string as a topic in the
topic name fields in the returned data, including in returned edit_history data.
If false, the server will use the value of realm_empty_topic_display_name
found in the POST /register response instead of empty string
to represent the empty string topic in its response.
Changes: New in Zulip 10.0 (feature level 334). Previously, the empty string
was not a valid topic.
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.
Whether the client supports processing the empty string as a topic in the
topic name fields in the returned data, including in returned edit_history data.
If false, the server will use the value of realm_empty_topic_display_name
found in the POST /register response instead of empty string
to represent the empty string topic in its response.
Changes: New in Zulip 10.0 (feature level 334). Previously, the empty string
was not a valid topic.
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.
Whether the client supports processing the empty string as a topic in the
topic name fields in the returned data, including in returned edit_history data.
If false, the server will use the value of realm_empty_topic_display_name
found in the POST /register response instead of empty string
to represent the empty string topic in its response.
Changes: New in Zulip 10.0 (feature level 334). Previously, the empty string
was not a valid topic.
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.
Whether the client supports processing the empty string as a topic in the
topic name fields in the returned data, including in returned edit_history data.
If false, the server will use the value of realm_empty_topic_display_name
found in the POST /register response instead of empty string
to represent the empty string topic in its response.
Changes: New in Zulip 10.0 (feature level 334). Previously, the empty string
was not a valid topic.
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.