pub struct Request { /* private fields */ }Expand description
Represents the request to the Render Zulip API.
Implementations§
Source§impl Request
impl Request
Sourcepub fn content(&self) -> &str
pub fn content(&self) -> &str
Gets the Request content.
The content of the message.
Clients should use the max_message_length returned by the
POST /register endpoint to determine
the maximum message size.
Sourcepub fn set_content<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_content<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the Request content.
The content of the message.
Clients should use the max_message_length returned by the
POST /register endpoint to determine
the maximum message size.
Sourcepub fn with_content<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_content<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the Request content.
The content of the message.
Clients should use the max_message_length returned by the
POST /register endpoint to determine
the maximum message size.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.