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§fn clone(&self) -> SaveCommentResponseOptimized
fn clone(&self) -> SaveCommentResponseOptimized
Returns a duplicate of the value. Read more
1.0.0 · 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 SaveCommentResponseOptimized
impl Debug for SaveCommentResponseOptimized
Source§impl Default for SaveCommentResponseOptimized
impl Default for SaveCommentResponseOptimized
Source§fn default() -> SaveCommentResponseOptimized
fn default() -> SaveCommentResponseOptimized
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for SaveCommentResponseOptimized
impl PartialEq for SaveCommentResponseOptimized
Source§fn eq(&self, other: &SaveCommentResponseOptimized) -> bool
fn eq(&self, other: &SaveCommentResponseOptimized) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SaveCommentResponseOptimized
Auto Trait Implementations§
impl Freeze for SaveCommentResponseOptimized
impl RefUnwindSafe for SaveCommentResponseOptimized
impl Send for SaveCommentResponseOptimized
impl Sync for SaveCommentResponseOptimized
impl Unpin for SaveCommentResponseOptimized
impl UnwindSafe for SaveCommentResponseOptimized
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