#[non_exhaustive]pub struct ReadScope {
pub app: String,
pub user: String,
pub session: String,
pub agent: String,
}Expand description
The session and agent a read is recorded for (spec 3.1 §10 D7).
Session ids are unique only within an app and user, so both are part of the key.
§Example
use adk_devtools::ReadScope;
let scope = ReadScope::new("app", "alice", "s1", "coder");
assert_eq!(scope.agent, "coder");Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.app: StringThe application.
user: StringThe user the session belongs to.
session: StringThe session.
agent: StringThe agent that read the file.
Implementations§
Trait Implementations§
impl Eq for ReadScope
impl StructuralPartialEq for ReadScope
Auto Trait Implementations§
impl Forget for ReadScope
impl Freeze for ReadScope
impl Move for ReadScope
impl RefUnwindSafe for ReadScope
impl Send for ReadScopewhere
RawVecInner: Send,
impl Sync for ReadScopewhere
RawVecInner: Sync,
impl Unpin for ReadScope
impl UnsafeUnpin for ReadScope
impl UnwindSafe for ReadScopewhere
RawVecInner: UnwindSafe,
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