pub struct Version {
pub task: Task,
pub version: u32,
pub text: String,
pub sections: BTreeMap<String, String>,
pub note: Option<String>,
pub author: String,
pub created_at: String,
pub based_on: Option<String>,
}Expand description
One saved version of a task’s instructions.
Fields§
§task: Task§version: u32§text: String§sections: BTreeMap<String, String>Style guide only: what to cover in a section, by title, in place of the built-in guidance.
note: Option<String>§created_at: String§based_on: Option<String>The built-in prompt when this version was written, to tell when a release changed it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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 StructuralPartialEq for Version
Auto Trait Implementations§
impl Forget for Version
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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