pub struct Capsule {
pub id: String,
pub kind: CapsuleType,
pub intent: String,
pub status: CapsuleStatus,
pub opened_at: i64,
pub closed_at: Option<i64>,
pub scope_ids: ScopeIds,
pub observation_ids: Vec<String>,
pub summary_id: Option<String>,
}Expand description
Bounded unit of meaning grouping related observations.
Mirrors Capsule in packages/kindling-core/src/types/capsule.ts.
Fields§
§id: String§kind: CapsuleType§intent: String§status: CapsuleStatus§opened_at: i64§closed_at: Option<i64>§scope_ids: ScopeIds§observation_ids: Vec<String>§summary_id: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Capsule
impl<'de> Deserialize<'de> for Capsule
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Capsule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Capsule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Capsule
impl Serialize for Capsule
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Capsule
Auto Trait Implementations§
impl Freeze for Capsule
impl RefUnwindSafe for Capsule
impl Send for Capsule
impl Sync for Capsule
impl Unpin for Capsule
impl UnsafeUnpin for Capsule
impl UnwindSafe for Capsule
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