pub struct OfferParam<'a> {
pub name: &'a str,
pub ty: &'a str,
pub description: Option<&'a str>,
}Expand description
One value an offered action asks for: its name, the type it takes (text, secret,
integer…) and the words a person reads beside the field.
Fields§
§name: &'a str§ty: &'a str§description: Option<&'a str>Implementations§
Source§impl OfferParam<'_>
impl OfferParam<'_>
Sourcepub fn param_type(&self) -> ParamType
pub fn param_type(&self) -> ParamType
The type the parameter takes, as ParamType spells it: text for a
value whose words are unknown here.
Trait Implementations§
Source§impl<'a> Clone for OfferParam<'a>
impl<'a> Clone for OfferParam<'a>
impl<'a> Copy for OfferParam<'a>
Source§impl<'a> Debug for OfferParam<'a>
impl<'a> Debug for OfferParam<'a>
impl<'a> Eq for OfferParam<'a>
Source§impl<'a> PartialEq for OfferParam<'a>
impl<'a> PartialEq for OfferParam<'a>
impl<'a> StructuralPartialEq for OfferParam<'a>
Auto Trait Implementations§
impl<'a> Forget for OfferParam<'a>
impl<'a> Freeze for OfferParam<'a>
impl<'a> Move for OfferParam<'a>
impl<'a> RefUnwindSafe for OfferParam<'a>
impl<'a> Send for OfferParam<'a>
impl<'a> Sync for OfferParam<'a>
impl<'a> Unpin for OfferParam<'a>
impl<'a> UnsafeUnpin for OfferParam<'a>
impl<'a> UnwindSafe for OfferParam<'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