pub enum Subject {
AgentId(String),
SessionToResolve(String),
}Expand description
The principal whose policy is being resolved. Wire encoding is the
resolver’s UNTAGGED object-key form — {"agent_id": ...} or
{"session_id": ...} — pinned by the producer-real contract vectors
(tests/fixtures/policy_resolve_contract_vectors.json, vendored from
prefrontal where each committed request is executed against live dispatch).
The first cut serialized a tagged {kind, value} form and every live call
failed shape-parse: prose pinned the field names but only bytes pin an
encoding.
Variants§
AgentId(String)
A stable registry agent identifier.
SessionToResolve(String)
A session identifier that the resolver maps to an agent.
Trait Implementations§
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Forget for Subject
impl Freeze for Subject
impl Move for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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