pub struct ControlInvocation {
pub address: ActionAddress,
pub arguments: Map<String, Value>,
}Expand description
A UI control’s inert request to invoke one advertised operation.
This deliberately carries an address and typed JSON arguments, not an encoded action. The app process resolves the address against its fresh resource tree before opening the action API, so a control cannot retain stale authority when availability or policy changes.
Fields§
§address: ActionAddress§arguments: Map<String, Value>Implementations§
Source§impl ControlInvocation
impl ControlInvocation
Sourcepub fn from_parts(
resource: impl AsRef<str>,
action: impl AsRef<str>,
arguments: Map<String, Value>,
) -> Option<ControlInvocation>
pub fn from_parts( resource: impl AsRef<str>, action: impl AsRef<str>, arguments: Map<String, Value>, ) -> Option<ControlInvocation>
An invocation of action on resource, with its arguments, or None
when either half is empty or contains the address separator.
This checks the format only. The app process resolves the address against its fresh resource tree and revalidates the arguments; constructing a value grants no authority.
Trait Implementations§
Source§impl Clone for ControlInvocation
impl Clone for ControlInvocation
Source§fn clone(&self) -> ControlInvocation
fn clone(&self) -> ControlInvocation
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 moreSource§impl Debug for ControlInvocation
impl Debug for ControlInvocation
Source§impl PartialEq for ControlInvocation
impl PartialEq for ControlInvocation
impl StructuralPartialEq for ControlInvocation
Auto Trait Implementations§
impl Forget for ControlInvocation
impl Freeze for ControlInvocation
impl Move for ControlInvocation
impl RefUnwindSafe for ControlInvocation
impl Send for ControlInvocation
impl Sync for ControlInvocation
impl Unpin for ControlInvocation
impl UnsafeUnpin for ControlInvocation
impl UnwindSafe for ControlInvocation
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