pub struct SessionScope {
pub session_id: String,
pub agent_frame_id: Option<String>,
}Fields§
§session_id: String§agent_frame_id: Option<String>Implementations§
Source§impl SessionScope
impl SessionScope
pub fn new(session_id: impl Into<String>) -> SessionScope
pub fn for_agent_frame( session_id: impl Into<String>, agent_frame_id: impl Into<String>, ) -> SessionScope
pub fn id(&self) -> SessionScopeId
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionScope
impl Clone for SessionScope
Source§fn clone(&self) -> SessionScope
fn clone(&self) -> SessionScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionScope
impl Debug for SessionScope
Source§impl<'de> Deserialize<'de> for SessionScope
impl<'de> Deserialize<'de> for SessionScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionScope
Source§impl PartialEq for SessionScope
impl PartialEq for SessionScope
Source§fn eq(&self, other: &SessionScope) -> bool
fn eq(&self, other: &SessionScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionScope
impl Serialize for SessionScope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SessionScope
Auto Trait Implementations§
impl Freeze for SessionScope
impl RefUnwindSafe for SessionScope
impl Send for SessionScope
impl Sync for SessionScope
impl Unpin for SessionScope
impl UnsafeUnpin for SessionScope
impl UnwindSafe for SessionScope
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