pub struct ActorView {
pub display: String,
pub id: String,
pub kind: String,
pub model: Option<String>,
}Expand description
Resolved actor identity for a turn. Lookup happens once on the
server against the document’s meta.actors block; turns reference
the actor by u32 index into the projection’s actors array.
JSON schema
{
"description": "Resolved actor identity for a turn. Lookup happens once on the\nserver against the document's `meta.actors` block; turns reference\nthe actor by `u32` index into the projection's `actors` array.",
"type": "object",
"required": [
"display",
"id",
"kind"
],
"properties": {
"display": {
"description": "Display name resolved against `meta.actors` if present, else the\nsuffix after `:`.",
"type": "string"
},
"id": {
"description": "Canonical actor string (e.g. `\"claude:opus-4-7\"`).",
"type": "string"
},
"kind": {
"description": "Prefix before `:` — `\"claude\"`, `\"human\"`, etc.",
"type": "string"
},
"model": {
"type": [
"string",
"null"
]
}
}
}Fields§
§display: StringDisplay name resolved against meta.actors if present, else the
suffix after :.
id: StringCanonical actor string (e.g. "claude:opus-4-7").
kind: StringPrefix before : — "claude", "human", etc.
model: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ActorView
impl<'de> Deserialize<'de> for ActorView
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
Auto Trait Implementations§
impl Freeze for ActorView
impl RefUnwindSafe for ActorView
impl Send for ActorView
impl Sync for ActorView
impl Unpin for ActorView
impl UnsafeUnpin for ActorView
impl UnwindSafe for ActorView
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