pub struct HeaderState {
pub status: ApiStatus,
pub notification_type: Value,
pub user_id: String,
pub user_id_ws: String,
pub notification_counts: Vec<NotificationAndCount>,
pub account_notifications: Vec<HeaderAccountNotification>,
}Fields§
§status: ApiStatus§notification_type: Value§user_id: String§user_id_ws: String§notification_counts: Vec<NotificationAndCount>§account_notifications: Vec<HeaderAccountNotification>Implementations§
Source§impl HeaderState
impl HeaderState
pub fn new( status: ApiStatus, notification_type: Value, user_id: String, user_id_ws: String, notification_counts: Vec<NotificationAndCount>, account_notifications: Vec<HeaderAccountNotification>, ) -> HeaderState
Trait Implementations§
Source§impl Clone for HeaderState
impl Clone for HeaderState
Source§impl Debug for HeaderState
impl Debug for HeaderState
Source§impl Default for HeaderState
impl Default for HeaderState
Source§impl<'de> Deserialize<'de> for HeaderState
impl<'de> Deserialize<'de> for HeaderState
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 HeaderState
impl PartialEq for HeaderState
Source§impl Serialize for HeaderState
impl Serialize for HeaderState
impl StructuralPartialEq for HeaderState
Auto Trait Implementations§
impl Forget for HeaderState
impl Freeze for HeaderStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<NotificationAndCount>: Freeze,
PhantomData<HeaderAccountNotification>: Freeze,
impl Move for HeaderState
impl RefUnwindSafe for HeaderState
impl Send for HeaderState
impl Sync for HeaderState
impl Unpin for HeaderState
impl UnsafeUnpin for HeaderStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<NotificationAndCount>: UnsafeUnpin,
PhantomData<HeaderAccountNotification>: UnsafeUnpin,
impl UnwindSafe for HeaderStatewhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
HashMap<String, String>: UnwindSafe,
NonZero<i32>: UnwindSafe,
FixedOffset: 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