pub struct ApprovalCall<'a> {
pub arguments: &'a Value,
pub as_sent: &'a Value,
pub refused: bool,
}Expand description
One call as the kernel’s approval rules show it to
ToolSemantics::owner_approval_request.
Fields§
§arguments: &'a ValueThe arguments the dispatcher will execute (for a tool whose calls the kernel judges in canonical form, the canonical form; otherwise the model’s own).
as_sent: &'a ValueThe arguments as the model sent them, for a card about a call whose arguments cannot be read.
refused: boolThe dispatcher refuses this call before it runs (an out-of-scope target nobody may authorize), so nothing about it needs the owner.
Implementations§
Source§impl<'a> ApprovalCall<'a>
impl<'a> ApprovalCall<'a>
Sourcepub fn as_sent(arguments: &'a Value) -> ApprovalCall<'a>
pub fn as_sent(arguments: &'a Value) -> ApprovalCall<'a>
A call the dispatcher runs as the model sent it.
Trait Implementations§
Source§impl<'a> Clone for ApprovalCall<'a>
impl<'a> Clone for ApprovalCall<'a>
Source§fn clone(&self) -> ApprovalCall<'a>
fn clone(&self) -> ApprovalCall<'a>
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 moreimpl<'a> Copy for ApprovalCall<'a>
Auto Trait Implementations§
impl<'a> Forget for ApprovalCall<'a>
impl<'a> Freeze for ApprovalCall<'a>
impl<'a> Move for ApprovalCall<'a>
impl<'a> RefUnwindSafe for ApprovalCall<'a>
impl<'a> Send for ApprovalCall<'a>
impl<'a> Sync for ApprovalCall<'a>
impl<'a> Unpin for ApprovalCall<'a>
impl<'a> UnsafeUnpin for ApprovalCall<'a>where
&'a Value: UnsafeUnpin,
impl<'a> UnwindSafe for ApprovalCall<'a>where
&'a Value: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more