pub struct Offer<'a> {
pub resource: &'a str,
pub resource_kind: &'a str,
pub action: &'a str,
pub label: &'a str,
pub description: Option<&'a str>,
pub kind: ActionKind,
pub operation: OperationKind,
pub confirm: bool,
pub asks: Vec<OfferParam<'a>>,
pub keywords: Vec<&'a str>,
pub icon: Option<&'a str>,
}Expand description
One action an app offers while it is closed, as its manifest’s [[offers]] declare it:
what the app’s code publishes on an empty document, written there by tilolang surface.
Invoking one launches the app, and the action it then publishes admits the invocation.
Fields§
§resource: &'a str§resource_kind: &'a str§action: &'a str§label: &'a str§description: Option<&'a str>§kind: ActionKind§operation: OperationKind§confirm: boolA person confirms it first.
asks: Vec<OfferParam<'a>>The values it asks for before it can run: one line each, or several a small form fills.
keywords: Vec<&'a str>§icon: Option<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Offer<'a>
impl<'a> Freeze for Offer<'a>
impl<'a> Move for Offer<'a>
impl<'a> RefUnwindSafe for Offer<'a>
impl<'a> Send for Offer<'a>
impl<'a> Sync for Offer<'a>
impl<'a> Unpin for Offer<'a>
impl<'a> UnsafeUnpin for Offer<'a>
impl<'a> UnwindSafe for Offer<'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
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