pub struct ThoughtData {
pub thought: String,
pub thought_number: i32,
pub total_thoughts: i32,
pub next_thought_needed: bool,
pub is_revision: Option<bool>,
pub revises_thought: Option<i32>,
pub branch_from_thought: Option<i32>,
pub branch_id: Option<String>,
pub needs_more_thoughts: Option<bool>,
}Expand description
Data structure for a single thought
Fields§
§thought: String§thought_number: i32§total_thoughts: i32§next_thought_needed: bool§is_revision: Option<bool>§revises_thought: Option<i32>§branch_from_thought: Option<i32>§branch_id: Option<String>§needs_more_thoughts: Option<bool>Trait Implementations§
Source§impl Clone for ThoughtData
impl Clone for ThoughtData
Source§fn clone(&self) -> ThoughtData
fn clone(&self) -> ThoughtData
Returns a duplicate of the value. Read more
1.0.0 · 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 ThoughtData
impl Debug for ThoughtData
Source§impl<'de> Deserialize<'de> for ThoughtData
impl<'de> Deserialize<'de> for ThoughtData
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
Auto Trait Implementations§
impl Freeze for ThoughtData
impl RefUnwindSafe for ThoughtData
impl Send for ThoughtData
impl Sync for ThoughtData
impl Unpin for ThoughtData
impl UnwindSafe for ThoughtData
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