Struct GateChoiceInput
pub struct GateChoiceInput {
pub label: String,
pub prefill: Option<String>,
}Expand description
The text-collection spec of an input-bearing GateChoice.
Fields§
§label: StringField label shown on the form (e.g. “Edited draft”).
prefill: Option<String>Pre-filled text (e.g. the current draft an Edit starts from).
Trait Implementations§
Source§impl Clone for GateChoiceInput
impl Clone for GateChoiceInput
Source§fn clone(&self) -> GateChoiceInput
fn clone(&self) -> GateChoiceInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GateChoiceInput
impl Debug for GateChoiceInput
Source§impl<'de> Deserialize<'de> for GateChoiceInput
impl<'de> Deserialize<'de> for GateChoiceInput
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
Auto Trait Implementations§
impl Freeze for GateChoiceInput
impl RefUnwindSafe for GateChoiceInput
impl Send for GateChoiceInput
impl Sync for GateChoiceInput
impl Unpin for GateChoiceInput
impl UnsafeUnpin for GateChoiceInput
impl UnwindSafe for GateChoiceInput
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