pub struct BaseResponse { /* private fields */ }Expand description
Represents the base response from a Zulip API server.
Implementations§
Trait Implementations§
Source§impl Clone for BaseResponse
impl Clone for BaseResponse
Source§impl Debug for BaseResponse
impl Debug for BaseResponse
Source§impl Default for BaseResponse
impl Default for BaseResponse
Source§impl<'de> Deserialize<'de> for BaseResponse
impl<'de> Deserialize<'de> for BaseResponse
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
Source§impl Display for BaseResponse
impl Display for BaseResponse
impl Eq for BaseResponse
Source§impl PartialEq for BaseResponse
impl PartialEq for BaseResponse
Source§impl Response for BaseResponse
impl Response for BaseResponse
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
Builder function that sets the Response
msg field.Source§fn set_result(&mut self, result: ApiResult)
fn set_result(&mut self, result: ApiResult)
Sets the Response
result field.Source§fn with_result(self, result: ApiResult) -> Self
fn with_result(self, result: ApiResult) -> Self
Builder function that sets the Response
result field.Source§fn with_code(self, code: ErrorCode) -> Self
fn with_code(self, code: ErrorCode) -> Self
Builder function that sets the Response
code field.Source§fn ignored_parameters_unsupported(&self) -> Option<&[String]>
fn ignored_parameters_unsupported(&self) -> Option<&[String]>
Source§impl Serialize for BaseResponse
impl Serialize for BaseResponse
impl StructuralPartialEq for BaseResponse
Auto Trait Implementations§
impl Freeze for BaseResponse
impl RefUnwindSafe for BaseResponse
impl Send for BaseResponse
impl Sync for BaseResponse
impl Unpin for BaseResponse
impl UnsafeUnpin for BaseResponse
impl UnwindSafe for BaseResponse
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.