pub struct GoalNode {
pub id: String,
pub targets: BTreeMap<String, f64>,
pub weight: f64,
pub priority: i32,
pub status: GoalStatus,
pub progress: f64,
pub parent_id: Option<String>,
pub children: Vec<String>,
}Fields§
§id: String§targets: BTreeMap<String, f64>§weight: f64§priority: i32§status: GoalStatus§progress: f64§parent_id: Option<String>§children: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GoalNode
impl<'de> Deserialize<'de> for GoalNode
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 GoalNode
Auto Trait Implementations§
impl Forget for GoalNode
impl Freeze for GoalNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, f64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, f64)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for GoalNode
impl RefUnwindSafe for GoalNode
impl Send for GoalNode
impl Sync for GoalNode
impl Unpin for GoalNode
impl UnsafeUnpin for GoalNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for GoalNode
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