pub struct DraftFrontmatter {
pub kind: Option<String>,
pub case_uid: String,
pub send_intent: Option<String>,
pub reply_to_message_id: Option<String>,
pub identity: Option<String>,
pub subject: Option<String>,
pub to: Vec<String>,
pub cc: Vec<String>,
pub attachments: Vec<String>,
}Expand description
Frontmatter of an agent-authored drafts/*.md. Shared by draft validation
and outbound message building so both agree on one schema.
Fields§
§kind: Option<String>§case_uid: String§send_intent: Option<String>§reply_to_message_id: Option<String>§identity: Option<String>§subject: Option<String>§to: Vec<String>§cc: Vec<String>§attachments: Vec<String>Trait Implementations§
Source§impl Clone for DraftFrontmatter
impl Clone for DraftFrontmatter
Source§fn clone(&self) -> DraftFrontmatter
fn clone(&self) -> DraftFrontmatter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DraftFrontmatter
impl Debug for DraftFrontmatter
Source§impl Default for DraftFrontmatter
impl Default for DraftFrontmatter
Source§fn default() -> DraftFrontmatter
fn default() -> DraftFrontmatter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftFrontmatter
impl<'de> Deserialize<'de> for DraftFrontmatter
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 DraftFrontmatter
Source§impl PartialEq for DraftFrontmatter
impl PartialEq for DraftFrontmatter
Source§fn eq(&self, other: &DraftFrontmatter) -> bool
fn eq(&self, other: &DraftFrontmatter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DraftFrontmatter
impl Serialize for DraftFrontmatter
impl StructuralPartialEq for DraftFrontmatter
Auto Trait Implementations§
impl Freeze for DraftFrontmatter
impl RefUnwindSafe for DraftFrontmatter
impl Send for DraftFrontmatter
impl Sync for DraftFrontmatter
impl Unpin for DraftFrontmatter
impl UnsafeUnpin for DraftFrontmatter
impl UnwindSafe for DraftFrontmatter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.