pub struct SessionsResponse {
pub sessions: Vec<StreamSession>,
pub total_count: usize,
}
Expand description
Response for multiple sessions queries
Fields§
§sessions: Vec<StreamSession>
§total_count: usize
Trait Implementations§
Source§impl Clone for SessionsResponse
impl Clone for SessionsResponse
Source§fn clone(&self) -> SessionsResponse
fn clone(&self) -> SessionsResponse
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 SessionsResponse
impl Debug for SessionsResponse
Source§impl<'de> Deserialize<'de> for SessionsResponse
impl<'de> Deserialize<'de> for SessionsResponse
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<R> QueryHandler<GetActiveSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
impl<R> QueryHandler<GetActiveSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
fn handle<'life0, 'async_trait>(
&'life0 self,
query: GetActiveSessionsQuery,
) -> Pin<Box<dyn Future<Output = ApplicationResult<SessionsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R> QueryHandler<SearchSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
impl<R> QueryHandler<SearchSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
fn handle<'life0, 'async_trait>(
&'life0 self,
query: SearchSessionsQuery,
) -> Pin<Box<dyn Future<Output = ApplicationResult<SessionsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for SessionsResponse
impl RefUnwindSafe for SessionsResponse
impl Send for SessionsResponse
impl Sync for SessionsResponse
impl Unpin for SessionsResponse
impl UnwindSafe for SessionsResponse
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