pub struct DraftField {
pub path: Vec<String>,
pub label: String,
pub value: DraftValue,
pub editable: bool,
pub multiline: bool,
pub shows: Option<String>,
pub role: Option<MessageRole>,
}Fields§
§path: Vec<String>Where the value sits in the arguments: the parameter, then the field of an object parameter.
label: String§value: DraftValue§editable: boolWhether a person may change it before confirming.
multiline: boolWhether it is prose that wants several lines.
shows: Option<String>What the row reads instead of the raw value, where the value names one
of its parameter’s choices: a field id reads as the field’s name
(“Body”), a pick as the thing it picks. What runs is still value.
role: Option<MessageRole>Its part in a message preview.
Trait Implementations§
Source§impl Clone for DraftField
impl Clone for DraftField
Source§impl Debug for DraftField
impl Debug for DraftField
Source§impl<'de> Deserialize<'de> for DraftField
impl<'de> Deserialize<'de> for DraftField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DraftField
Source§impl PartialEq for DraftField
impl PartialEq for DraftField
Source§impl Serialize for DraftField
impl Serialize for DraftField
impl StructuralPartialEq for DraftField
Auto Trait Implementations§
impl Forget for DraftField
impl Freeze for DraftField
impl Move for DraftField
impl RefUnwindSafe for DraftField
impl Send for DraftField
impl Sync for DraftField
impl Unpin for DraftField
impl UnsafeUnpin for DraftField
impl UnwindSafe for DraftField
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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