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§impl Debug for ApiSaveCommentResponse
impl Debug for ApiSaveCommentResponse
Source§impl Default for ApiSaveCommentResponse
impl Default for ApiSaveCommentResponse
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§impl Serialize for ApiSaveCommentResponse
impl Serialize for ApiSaveCommentResponse
impl StructuralPartialEq for ApiSaveCommentResponse
Auto Trait Implementations§
impl Forget for ApiSaveCommentResponse
impl Freeze for ApiSaveCommentResponsewhere
*const ApiComment is !null: Freeze,
PhantomData<ApiComment>: Freeze,
*const UserSessionInfo is !null: Freeze,
PhantomData<UserSessionInfo>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for ApiSaveCommentResponse
impl RefUnwindSafe for ApiSaveCommentResponse
impl Send for ApiSaveCommentResponse
impl Sync for ApiSaveCommentResponse
impl Unpin for ApiSaveCommentResponse
impl UnsafeUnpin for ApiSaveCommentResponsewhere
*const ApiComment is !null: UnsafeUnpin,
PhantomData<ApiComment>: UnsafeUnpin,
*const UserSessionInfo is !null: UnsafeUnpin,
PhantomData<UserSessionInfo>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for ApiSaveCommentResponsewhere
BoxRaw<ApiComment>: UnwindSafe,
BoxRaw<UserSessionInfo>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
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