pub struct ScratchWriteParams {
pub content: String,
pub symbol: Option<String>,
pub workflow: Option<String>,
pub ttl_hours: Option<i64>,
pub tags: Option<Vec<String>>,
pub planning: Option<bool>,
}Fields§
§content: StringWorking notes content (markdown OK).
symbol: Option<String>Optional: qualified name of the symbol to attach this note to. In planning mode, the symbol does not need to exist yet.
workflow: Option<String>Optional: named investigation context (e.g. “tracing-sync-bug”).
ttl_hours: Option<i64>Optional: time-to-live in hours. When not set, no expiry.
Optional: freeform tags.
planning: Option<bool>When true, marks this entry as pre-implementation planning notes. Adds the “planning” tag automatically. Unresolved symbol names are stored as-is rather than causing an error — useful for naming planned symbols that do not exist in the index yet.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScratchWriteParams
impl<'de> Deserialize<'de> for ScratchWriteParams
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
Source§impl JsonSchema for ScratchWriteParams
impl JsonSchema for ScratchWriteParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ScratchWriteParams
impl RefUnwindSafe for ScratchWriteParams
impl Send for ScratchWriteParams
impl Sync for ScratchWriteParams
impl Unpin for ScratchWriteParams
impl UnsafeUnpin for ScratchWriteParams
impl UnwindSafe for ScratchWriteParams
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