pub struct GetRequest {
pub app_name: String,
pub user_id: String,
pub session_id: String,
pub num_recent_events: Option<usize>,
pub after: Option<DateTime<Utc>>,
}Fields§
§app_name: String§user_id: String§session_id: String§num_recent_events: Option<usize>§after: Option<DateTime<Utc>>Implementations§
Source§impl GetRequest
impl GetRequest
Sourcepub fn try_identity(&self) -> Result<AdkIdentity>
pub fn try_identity(&self) -> Result<AdkIdentity>
Returns the stable session-scoped AdkIdentity triple.
Parses app_name, user_id, and session_id into their typed
equivalents and combines them into an AdkIdentity.
§Errors
Returns an error if any of the three identifiers fail validation.
Trait Implementations§
Source§impl Clone for GetRequest
impl Clone for GetRequest
Source§fn clone(&self) -> GetRequest
fn clone(&self) -> GetRequest
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 moreAuto Trait Implementations§
impl Freeze for GetRequest
impl RefUnwindSafe for GetRequest
impl Send for GetRequest
impl Sync for GetRequest
impl Unpin for GetRequest
impl UnsafeUnpin for GetRequest
impl UnwindSafe for GetRequest
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