pub struct Session {
pub id: i64,
pub type: Option<String>,
pub status: SessionStatus,
pub creation_time: Option<i64>,
pub expiration_time: Option<i64>,
pub nonce: Option<String>,
pub client_id: Option<String>,
}Expand description
A CDF Session.
Fields§
§id: i64Session internal ID.
type: Option<String>Session type.
status: SessionStatusSession status.
creation_time: Option<i64>Time this session was created, in milliseconds since epoch.
expiration_time: Option<i64>Time when this session will expire, in milliseconds since epoch.
nonce: Option<String>Session nonce, used by the CDF service to activate the session.
client_id: Option<String>Client ID.
Trait Implementations§
Source§impl Create<AddSession, Session> for SessionsResource
impl Create<AddSession, Session> for SessionsResource
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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 List<SessionQuery, Session> for SessionsResource
impl List<SessionQuery, Session> for SessionsResource
Source§fn list(
&self,
params: Option<TParams>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn list( &self, params: Option<TParams>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Query a resource with optional query parameters. Read more
Source§fn list_all(
&self,
params: TParams,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn list_all( &self, params: TParams, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Query a resource with query parameters, continuing until the cursor is exhausted. Read more
Source§fn list_all_stream(
&self,
params: TParams,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn list_all_stream( &self, params: TParams, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
List resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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