pub struct ReminderRef {
pub kind: RefKind,
pub id: String,
pub label: Option<String>,
pub stale: bool,
}Expand description
A soft, advisory reference to another object.
Refs are contextual metadata — a stale ref does not invalidate the
reminder. The label is captured at creation so the agent retains
a human-readable hint even if the underlying object is renamed or
deleted.
Fields§
§kind: RefKind§id: StringStable identifier (branch name, memory key, task ID, path, URL…).
label: Option<String>Human-readable label captured at creation time. Survives renames.
stale: boolSet lazily when the referenced object can no longer be resolved.
Implementations§
Source§impl ReminderRef
impl ReminderRef
pub fn branch(id: impl Into<String>, label: impl Into<String>) -> Self
pub fn memory(id: impl Into<String>) -> Self
pub fn plan(id: impl Into<String>, label: impl Into<String>) -> Self
pub fn task(id: impl Into<String>, label: impl Into<String>) -> Self
pub fn state_path(path: impl Into<String>) -> Self
pub fn external(url: impl Into<String>, scheme: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ReminderRef
impl Clone for ReminderRef
Source§impl Debug for ReminderRef
impl Debug for ReminderRef
Source§impl<'de> Deserialize<'de> for ReminderRef
impl<'de> Deserialize<'de> for ReminderRef
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 Eq for ReminderRef
Source§impl PartialEq for ReminderRef
impl PartialEq for ReminderRef
Source§impl Serialize for ReminderRef
impl Serialize for ReminderRef
impl StructuralPartialEq for ReminderRef
Auto Trait Implementations§
impl Freeze for ReminderRef
impl RefUnwindSafe for ReminderRef
impl Send for ReminderRef
impl Sync for ReminderRef
impl Unpin for ReminderRef
impl UnsafeUnpin for ReminderRef
impl UnwindSafe for ReminderRef
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