pub enum DraftValue {
Text {
text: String,
},
Number {
text: String,
},
Flag {
on: bool,
},
List {
count: usize,
labels: Vec<String>,
},
Resource {
label: String,
},
Withheld,
}Expand description
What one field holds.
Variants§
Text
Number
Flag
List
Several entries, each by its label: 3 attachments: a.pdf, b.md, c.png.
Resource
Another resource, by its label.
Withheld
A secret: shown as withheld, never copied into the draft.
Implementations§
Source§impl DraftValue
impl DraftValue
pub fn serialize<__S>(
__self: &DraftValue,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> DraftValue
impl<'de> DraftValue
pub fn deserialize<__D>(__deserializer: __D) -> Result<DraftValue, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for DraftValue
impl Clone for DraftValue
Source§impl Debug for DraftValue
impl Debug for DraftValue
Source§impl<'de> Deserialize<'de> for DraftValue
impl<'de> Deserialize<'de> for DraftValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DraftValue
Source§impl PartialEq for DraftValue
impl PartialEq for DraftValue
Source§impl Serialize for DraftValue
impl Serialize for DraftValue
impl StructuralPartialEq for DraftValue
Auto Trait Implementations§
impl Forget for DraftValue
impl Freeze for DraftValue
impl Move for DraftValue
impl RefUnwindSafe for DraftValue
impl Send for DraftValue
impl Sync for DraftValue
impl Unpin for DraftValue
impl UnsafeUnpin for DraftValue
impl UnwindSafe for DraftValue
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