pub struct Inputs<'a> {
pub inbound: Option<&'a WorkContext>,
pub explicit: Option<&'a Explicit>,
pub repository: &'a RepositoryOrg,
pub agent: &'a AgentOrganizations,
pub user_default: Option<&'a WorkContext>,
pub held: &'a [WorkContext],
}Expand description
Everything the rule reads. Borrowed, so a caller can resolve repeatedly without cloning the held-login index.
Fields§
§inbound: Option<&'a WorkContext>The context of an inbound request whose sender was attested as a member of that org AND authorized to drive this agent. Attestation alone is not enough; the caller must have checked both.
explicit: Option<&'a Explicit>§repository: &'a RepositoryOrg§agent: &'a AgentOrganizations§user_default: Option<&'a WorkContext>The person’s default org.
held: &'a [WorkContext]Every (login, org) context a signed-in login holds.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Inputs<'a>
impl<'a> RefUnwindSafe for Inputs<'a>
impl<'a> Send for Inputs<'a>
impl<'a> Sync for Inputs<'a>
impl<'a> Unpin for Inputs<'a>
impl<'a> UnsafeUnpin for Inputs<'a>
impl<'a> UnwindSafe for Inputs<'a>
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