pub struct SaveCommentResponseOptimized {
pub status: ApiStatus,
pub comment: Box<PublicComment>,
pub user: Option<Box<UserSessionInfo>>,
pub module_data: Option<HashMap<String, Value>>,
}Fields§
§status: ApiStatus§comment: Box<PublicComment>§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 SaveCommentResponseOptimized
impl SaveCommentResponseOptimized
pub fn new( status: ApiStatus, comment: PublicComment, user: Option<UserSessionInfo>, ) -> SaveCommentResponseOptimized
Trait Implementations§
Source§impl Clone for SaveCommentResponseOptimized
impl Clone for SaveCommentResponseOptimized
Source§impl Debug for SaveCommentResponseOptimized
impl Debug for SaveCommentResponseOptimized
Source§impl<'de> Deserialize<'de> for SaveCommentResponseOptimized
impl<'de> Deserialize<'de> for SaveCommentResponseOptimized
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 StructuralPartialEq for SaveCommentResponseOptimized
Auto Trait Implementations§
impl Forget for SaveCommentResponseOptimized
impl Freeze for SaveCommentResponseOptimizedwhere
*const PublicComment is !null: Freeze,
PhantomData<PublicComment>: Freeze,
*const UserSessionInfo is !null: Freeze,
PhantomData<UserSessionInfo>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for SaveCommentResponseOptimized
impl RefUnwindSafe for SaveCommentResponseOptimized
impl Send for SaveCommentResponseOptimized
impl Sync for SaveCommentResponseOptimized
impl Unpin for SaveCommentResponseOptimized
impl UnsafeUnpin for SaveCommentResponseOptimizedwhere
*const PublicComment is !null: UnsafeUnpin,
PhantomData<PublicComment>: UnsafeUnpin,
*const UserSessionInfo is !null: UnsafeUnpin,
PhantomData<UserSessionInfo>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for SaveCommentResponseOptimizedwhere
BoxRaw<PublicComment>: 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