pub struct Request { /* private fields */ }Expand description
Represents a Edit Message request to a Zulip server.
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.
Sourcepub fn set_message_id(&mut self, val: u64)
pub fn set_message_id(&mut self, val: u64)
Sets the Request message_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.
Source§impl Request
impl Request
Sourcepub fn unset_topic(&mut self) -> Option<String>
pub fn unset_topic(&mut self) -> Option<String>
Unsets the Request topic.
Sourcepub fn with_topic<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_topic<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the Request topic.
Sourcepub fn prev_content_sha256(&self) -> Option<&str>
pub fn prev_content_sha256(&self) -> Option<&str>
Gets the Request prev_content_sha256.
Sourcepub fn set_prev_content_sha256<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_prev_content_sha256<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the Request prev_content_sha256.
Sourcepub fn unset_prev_content_sha256(&mut self) -> Option<String>
pub fn unset_prev_content_sha256(&mut self) -> Option<String>
Unsets the Request prev_content_sha256.
Source§impl Request
impl Request
Sourcepub const fn propagate_mode(&self) -> Option<PropagateMode>
pub const fn propagate_mode(&self) -> Option<PropagateMode>
Gets the Request propagate_mode.
Sourcepub fn set_propagate_mode(&mut self, val: PropagateMode)
pub fn set_propagate_mode(&mut self, val: PropagateMode)
Sets the Request propagate_mode.
Sourcepub fn unset_propagate_mode(&mut self) -> Option<PropagateMode>
pub fn unset_propagate_mode(&mut self) -> Option<PropagateMode>
Unsets the Request propagate_mode.
Sourcepub fn with_propagate_mode(self, val: PropagateMode) -> Self
pub fn with_propagate_mode(self, val: PropagateMode) -> Self
Builder function that sets the Request propagate_mode.
Sourcepub const fn send_notification_to_old_thread(&self) -> Option<bool>
pub const fn send_notification_to_old_thread(&self) -> Option<bool>
Gets the Request send_notification_to_old_thread.
Sourcepub fn set_send_notification_to_old_thread(&mut self, val: bool)
pub fn set_send_notification_to_old_thread(&mut self, val: bool)
Sets the Request send_notification_to_old_thread.
Sourcepub fn unset_send_notification_to_old_thread(&mut self) -> Option<bool>
pub fn unset_send_notification_to_old_thread(&mut self) -> Option<bool>
Unsets the Request send_notification_to_old_thread.
Sourcepub fn with_send_notification_to_old_thread(self, val: bool) -> Self
pub fn with_send_notification_to_old_thread(self, val: bool) -> Self
Builder function that sets the Request send_notification_to_old_thread.
Sourcepub const fn send_notification_to_new_thread(&self) -> Option<bool>
pub const fn send_notification_to_new_thread(&self) -> Option<bool>
Gets the Request send_notification_to_new_thread.
Sourcepub fn set_send_notification_to_new_thread(&mut self, val: bool)
pub fn set_send_notification_to_new_thread(&mut self, val: bool)
Sets the Request send_notification_to_new_thread.
Sourcepub fn unset_send_notification_to_new_thread(&mut self) -> Option<bool>
pub fn unset_send_notification_to_new_thread(&mut self) -> Option<bool>
Unsets the Request send_notification_to_new_thread.
Sourcepub fn with_send_notification_to_new_thread(self, val: bool) -> Self
pub fn with_send_notification_to_new_thread(self, val: bool) -> Self
Builder function that sets the Request send_notification_to_new_thread.
Sourcepub fn set_stream_id(&mut self, val: u64)
pub fn set_stream_id(&mut self, val: u64)
Sets the Request stream_id.
Sourcepub fn unset_stream_id(&mut self) -> Option<u64>
pub fn unset_stream_id(&mut self) -> Option<u64>
Unsets the Request stream_id.
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.
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.