pub struct Response { /* private fields */ }Expand description
Represents the response for the Get Message Zulip API endpoint.
See get-message for details.
Implementations§
Source§impl Response
impl Response
Sourcepub fn raw_content(&self) -> Option<&str>
pub fn raw_content(&self) -> Option<&str>
Gets the Response raw_content.
The raw Markdown content of the message.
See the help center article on message formatting for details on Zulip-flavored Markdown.
Deprecated and to be removed once no longer required for
legacy clients. Modern clients should prefer passing
"apply_markdown": false to request raw message content.
Sourcepub fn set_raw_content<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_raw_content<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the Response raw_content.
The raw Markdown content of the message.
See the help center article on message formatting for details on Zulip-flavored Markdown.
Deprecated and to be removed once no longer required for
legacy clients. Modern clients should prefer passing
"apply_markdown": false to request raw message content.
Sourcepub fn unset_raw_content(&mut self) -> Option<String>
pub fn unset_raw_content(&mut self) -> Option<String>
Unsets the Response raw_content.
The raw Markdown content of the message.
See the help center article on message formatting for details on Zulip-flavored Markdown.
Deprecated and to be removed once no longer required for
legacy clients. Modern clients should prefer passing
"apply_markdown": false to request raw message content.
Sourcepub fn with_raw_content<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_raw_content<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the Response raw_content.
The raw Markdown content of the message.
See the help center article on message formatting for details on Zulip-flavored Markdown.
Deprecated and to be removed once no longer required for
legacy clients. Modern clients should prefer passing
"apply_markdown": false to request raw message content.
Source§impl Response
impl Response
Sourcepub fn message(&self) -> Option<&Message>
pub fn message(&self) -> Option<&Message>
Gets the Response message.
Object containing details of the message.
Sourcepub fn set_message<'a, C: Into<Cow<'a, Message>>>(&mut self, val: C)
pub fn set_message<'a, C: Into<Cow<'a, Message>>>(&mut self, val: C)
Sets the Response message.
Object containing details of the message.
Sourcepub fn unset_message(&mut self) -> Option<Message>
pub fn unset_message(&mut self) -> Option<Message>
Unsets the Response message.
Object containing details of the message.
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.