pub struct HandleState {
pub handle_id: u32,
pub kind: String,
pub residency: String,
pub payload_ref: Option<String>,
pub digest: Option<String>,
pub original_size: Option<WireU64>,
pub tokens: u32,
pub source: Option<String>,
}Expand description
One P3 handle. residency is the label plus the locator fields that residency carries, so the
DTO neither mirrors the internal enum’s shape nor loses what a page-in needs.
Fields§
§handle_id: u32§kind: String§residency: String§payload_ref: Option<String>§digest: Option<String>§original_size: Option<WireU64>§tokens: u32§source: Option<String>Link back to the source object in working context (a tool call_id for a tool result).
Trait Implementations§
Source§impl Clone for HandleState
impl Clone for HandleState
Source§fn clone(&self) -> HandleState
fn clone(&self) -> HandleState
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 HandleState
impl Debug for HandleState
Source§impl<'de> Deserialize<'de> for HandleState
impl<'de> Deserialize<'de> for HandleState
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 PartialEq for HandleState
impl PartialEq for HandleState
Source§impl Serialize for HandleState
impl Serialize for HandleState
impl StructuralPartialEq for HandleState
Auto Trait Implementations§
impl Freeze for HandleState
impl RefUnwindSafe for HandleState
impl Send for HandleState
impl Sync for HandleState
impl Unpin for HandleState
impl UnsafeUnpin for HandleState
impl UnwindSafe for HandleState
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