pub struct Response { /* private fields */ }Expand description
Represents the response to a Edit Message API request.
Implementations§
Source§impl Response
impl Response
Sourcepub fn detached_uploads(&self) -> Option<&[Attachment]>
pub fn detached_uploads(&self) -> Option<&[Attachment]>
Gets the Response detached_uploads.
Details on all files uploaded by the acting user whose only references
were removed when editing this message. Clients should ask the acting user
if they wish to delete the uploaded files returned in this response,
which might otherwise remain visible only in message edit history.
Note that access to message edit history
is configurable; this detail may be important in presenting the
question clearly to users.
New in Zulip 10.0 (feature level 285).
Sourcepub fn set_detached_uploads<'a, C: Into<Cow<'a, [Attachment]>>>(
&mut self,
val: C,
)
pub fn set_detached_uploads<'a, C: Into<Cow<'a, [Attachment]>>>( &mut self, val: C, )
Sets the Response detached_uploads.
Details on all files uploaded by the acting user whose only references
were removed when editing this message. Clients should ask the acting user
if they wish to delete the uploaded files returned in this response,
which might otherwise remain visible only in message edit history.
Note that access to message edit history
is configurable; this detail may be important in presenting the
question clearly to users.
New in Zulip 10.0 (feature level 285).
Sourcepub fn unset_detached_uploads(&mut self) -> Option<Vec<Attachment>>
pub fn unset_detached_uploads(&mut self) -> Option<Vec<Attachment>>
Unsets the Response detached_uploads.
Details on all files uploaded by the acting user whose only references
were removed when editing this message. Clients should ask the acting user
if they wish to delete the uploaded files returned in this response,
which might otherwise remain visible only in message edit history.
Note that access to message edit history
is configurable; this detail may be important in presenting the
question clearly to users.
New in Zulip 10.0 (feature level 285).
Sourcepub fn with_detached_uploads<'a, C: Into<Cow<'a, [Attachment]>>>(
self,
val: C,
) -> Self
pub fn with_detached_uploads<'a, C: Into<Cow<'a, [Attachment]>>>( self, val: C, ) -> Self
Builder function that sets the Response detached_uploads.
Details on all files uploaded by the acting user whose only references
were removed when editing this message. Clients should ask the acting user
if they wish to delete the uploaded files returned in this response,
which might otherwise remain visible only in message edit history.
Note that access to message edit history
is configurable; this detail may be important in presenting the
question clearly to users.
New in Zulip 10.0 (feature level 285).
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.