pub struct Delegation {
pub text: String,
pub pixie: Option<u64>,
pub served_by: Option<String>,
}Expand description
What a local agent returned, and what it cost.
Fields§
§text: StringThe agent’s reply.
pixie: Option<u64>What the agent run actually cost, in pixie. Often None on the
client venue: the user’s own subscription paid, so the platform’s
cost is the fixed overhead and nothing more.
served_by: Option<String>What actually served the run, host-reported (e.g. claude-code,
a provider’s model id). The guest asked with an Intent, never a
name; this is the honest record of how the host resolved it.
Trait Implementations§
Source§impl Clone for Delegation
impl Clone for Delegation
Source§impl Debug for Delegation
impl Debug for Delegation
Source§impl<'de> Deserialize<'de> for Delegation
impl<'de> Deserialize<'de> for Delegation
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 From<String> for Delegation
impl From<String> for Delegation
Source§impl PartialEq for Delegation
impl PartialEq for Delegation
Source§impl Serialize for Delegation
impl Serialize for Delegation
impl StructuralPartialEq for Delegation
Auto Trait Implementations§
impl Forget for Delegation
impl Freeze for Delegation
impl Move for Delegation
impl RefUnwindSafe for Delegation
impl Send for Delegationwhere
RawVecInner: Send,
impl Sync for Delegationwhere
RawVecInner: Sync,
impl Unpin for Delegation
impl UnsafeUnpin for Delegation
impl UnwindSafe for Delegationwhere
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