Struct safe_vk::responses::LongPollSession
source · pub struct LongPollSession {
pub key: String,
pub server: String,
pub ts: String,
}Expand description
Represents the session data needed to connect to the Long Poll server
Fields§
§key: StringA secret key for the session.
server: StringThe server URL to connect to for receiving updates.
ts: StringThe ID of the last event received. Used to fetch subsequent events.
Trait Implementations§
source§impl Debug for LongPollSession
impl Debug for LongPollSession
source§impl<'de> Deserialize<'de> for LongPollSession
impl<'de> Deserialize<'de> for LongPollSession
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 LongPollSession
impl PartialEq for LongPollSession
source§fn eq(&self, other: &LongPollSession) -> bool
fn eq(&self, other: &LongPollSession) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LongPollSession
Auto Trait Implementations§
impl Freeze for LongPollSession
impl RefUnwindSafe for LongPollSession
impl Send for LongPollSession
impl Sync for LongPollSession
impl Unpin for LongPollSession
impl UnwindSafe for LongPollSession
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