pub struct ApiSaveCommentResponse {
pub status: ApiStatus,
pub comment: Box<ApiComment>,
pub user: Option<Box<UserSessionInfo>>,
pub module_data: Option<HashMap<String, Value>>,
}Fields§
§status: ApiStatus§comment: Box<ApiComment>§user: Option<Box<UserSessionInfo>>§module_data: Option<HashMap<String, Value>>Construct a type with a set of properties K of type T
Implementations§
Source§impl ApiSaveCommentResponse
impl ApiSaveCommentResponse
pub fn new( status: ApiStatus, comment: ApiComment, user: Option<UserSessionInfo>, ) -> ApiSaveCommentResponse
Trait Implementations§
Source§impl Clone for ApiSaveCommentResponse
impl Clone for ApiSaveCommentResponse
Source§fn clone(&self) -> ApiSaveCommentResponse
fn clone(&self) -> ApiSaveCommentResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiSaveCommentResponse
impl Debug for ApiSaveCommentResponse
Source§impl Default for ApiSaveCommentResponse
impl Default for ApiSaveCommentResponse
Source§fn default() -> ApiSaveCommentResponse
fn default() -> ApiSaveCommentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiSaveCommentResponse
impl<'de> Deserialize<'de> for ApiSaveCommentResponse
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 PartialEq for ApiSaveCommentResponse
impl PartialEq for ApiSaveCommentResponse
Source§fn eq(&self, other: &ApiSaveCommentResponse) -> bool
fn eq(&self, other: &ApiSaveCommentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApiSaveCommentResponse
impl Serialize for ApiSaveCommentResponse
impl StructuralPartialEq for ApiSaveCommentResponse
Auto Trait Implementations§
impl Freeze for ApiSaveCommentResponse
impl RefUnwindSafe for ApiSaveCommentResponse
impl Send for ApiSaveCommentResponse
impl Sync for ApiSaveCommentResponse
impl Unpin for ApiSaveCommentResponse
impl UnsafeUnpin for ApiSaveCommentResponse
impl UnwindSafe for ApiSaveCommentResponse
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