pub struct Request { /* private fields */ }Expand description
Represents the request for the Report Message Zulip API endpoint.
See report-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.
Sourcepub const fn report_type(&self) -> ReportType
pub const fn report_type(&self) -> ReportType
Gets the Request report_type.
The reason that best describes why the current user is reporting the target message for moderation.
Sourcepub fn set_report_type(&mut self, val: ReportType)
pub fn set_report_type(&mut self, val: ReportType)
Sets the Request report_type.
The reason that best describes why the current user is reporting the target message for moderation.
Sourcepub fn with_report_type(self, val: ReportType) -> Self
pub fn with_report_type(self, val: ReportType) -> Self
Builder function that sets the Request report_type.
The reason that best describes why the current user is reporting the target message for moderation.
Source§impl Request
impl Request
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Gets the Request description.
A short description with additional context about why the current user is reporting the target message for moderation.
Clients should limit this string to a maximum length of 1000 characters.
If the report_type parameter is “other”, this parameter is required, and its value cannot be an empty string.
Sourcepub fn set_description<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_description<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the Request description.
A short description with additional context about why the current user is reporting the target message for moderation.
Clients should limit this string to a maximum length of 1000 characters.
If the report_type parameter is “other”, this parameter is required, and its value cannot be an empty string.
Sourcepub fn unset_description(&mut self) -> Option<String>
pub fn unset_description(&mut self) -> Option<String>
Unsets the Request description.
A short description with additional context about why the current user is reporting the target message for moderation.
Clients should limit this string to a maximum length of 1000 characters.
If the report_type parameter is “other”, this parameter is required, and its value cannot be an empty string.
Sourcepub fn with_description<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_description<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the Request description.
A short description with additional context about why the current user is reporting the target message for moderation.
Clients should limit this string to a maximum length of 1000 characters.
If the report_type parameter is “other”, this parameter is required, and its value cannot be an empty string.
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.