pub struct NamedAgentRecordV1 {
pub instance_id: String,
pub instance_name: String,
pub definition_id: String,
pub identity_id: Option<String>,
pub memory_id: Option<String>,
pub working_dir: String,
pub created_at_ms: i64,
pub last_launched_at_ms: i64,
pub created_by_version: String,
pub last_launched_by_version: String,
}Expand description
v1 payload. Add new optional fields here under #[serde(default)]
and bump MAX_SUPPORTED_SCHEMA — old readers will skip the new
version, new readers fill defaults for old files.
Fields§
§instance_id: String§instance_name: String§definition_id: String§identity_id: Option<String>FK to db_identity_bundles.id. None = unbound (= ambient creds).
memory_id: Option<String>FK to db_memory_bundles.id. None = unbound (= vanilla CLI).
working_dir: StringPath relative to <shared_home>/agents/ — never absolute.
Keeps the record portable across machines where the home dir
differs.
created_at_ms: i64§last_launched_at_ms: i64§created_by_version: String§last_launched_by_version: StringTrait Implementations§
Source§impl Clone for NamedAgentRecordV1
impl Clone for NamedAgentRecordV1
Source§fn clone(&self) -> NamedAgentRecordV1
fn clone(&self) -> NamedAgentRecordV1
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 NamedAgentRecordV1
impl Debug for NamedAgentRecordV1
Source§impl<'de> Deserialize<'de> for NamedAgentRecordV1
impl<'de> Deserialize<'de> for NamedAgentRecordV1
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 PartialEq for NamedAgentRecordV1
impl PartialEq for NamedAgentRecordV1
Source§impl Serialize for NamedAgentRecordV1
impl Serialize for NamedAgentRecordV1
impl Eq for NamedAgentRecordV1
impl StructuralPartialEq for NamedAgentRecordV1
Auto Trait Implementations§
impl Freeze for NamedAgentRecordV1
impl RefUnwindSafe for NamedAgentRecordV1
impl Send for NamedAgentRecordV1
impl Sync for NamedAgentRecordV1
impl Unpin for NamedAgentRecordV1
impl UnwindSafe for NamedAgentRecordV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.