pub struct CharterLine {
pub id: String,
pub text: String,
}Expand description
One standing priority.
Denies unknown fields, unlike crate::skill::Skill’s frontmatter —
that leniency is for portability across harnesses that might author a
SKILL.md, and nothing else authors a charter.toml. A stray priority
or rank key is exactly the field §11 says there deliberately is none of;
silently dropping it would let an owner write one, believe it did
something, and never find out it didn’t.
Fields§
§id: StringWhat a crate::goal::GoalRef::Charter names. Unique within a
charter — see Charter::load.
text: StringTrait Implementations§
Source§impl Clone for CharterLine
impl Clone for CharterLine
Source§fn clone(&self) -> CharterLine
fn clone(&self) -> CharterLine
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 CharterLine
impl Debug for CharterLine
Source§impl<'de> Deserialize<'de> for CharterLine
impl<'de> Deserialize<'de> for CharterLine
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 CharterLine
Source§impl PartialEq for CharterLine
impl PartialEq for CharterLine
impl StructuralPartialEq for CharterLine
Auto Trait Implementations§
impl Freeze for CharterLine
impl RefUnwindSafe for CharterLine
impl Send for CharterLine
impl Sync for CharterLine
impl Unpin for CharterLine
impl UnsafeUnpin for CharterLine
impl UnwindSafe for CharterLine
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