pub struct DeviceRecord {
pub device_id: String,
pub person_id: String,
pub identity_pubkey_hex: String,
pub label: String,
pub hostname: String,
pub device_context: DeviceContext,
pub capabilities: DeviceCapabilities,
pub control_base_url: String,
pub is_local: bool,
pub created_at_unix: u64,
pub last_seen_unix: u64,
}Expand description
Full device record (no private keys — node secrets stay in node_identity.json).
Fields§
§device_id: Stringdid:q42:device:{node_identity_pubkey_hex}.
person_id: StringPerson principal this apparatus is bound to.
identity_pubkey_hex: StringEd25519 verifying key hex for the node identity (mesh/signing).
label: StringHuman label (optional).
hostname: StringOS hostname if known (informational only — not an identity).
device_context: DeviceContextSituation of this machine (ownership, fleet, multi-user setting).
capabilities: DeviceCapabilities§control_base_url: StringHTTP control plane base URL for fleet job delivery (e.g. http://192.168.1.10:8080).
Empty on pure-local installs; set so other apparatus can POST jobs here.
is_local: boolTrue only for the install running in this process.
created_at_unix: u64§last_seen_unix: u64Implementations§
Source§impl DeviceRecord
impl DeviceRecord
pub fn device_did_from_pubkey_hex(pubkey_hex: &str) -> String
pub fn new_local( person_id: impl Into<String>, identity_pubkey_hex: impl Into<String>, device_context: DeviceContext, label: impl Into<String>, ) -> Self
pub fn touch(&mut self)
pub fn with_control_base_url(self, url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for DeviceRecord
impl Clone for DeviceRecord
Source§fn clone(&self) -> DeviceRecord
fn clone(&self) -> DeviceRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceRecord
impl Debug for DeviceRecord
Source§impl<'de> Deserialize<'de> for DeviceRecord
impl<'de> Deserialize<'de> for DeviceRecord
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 DeviceRecord
impl PartialEq for DeviceRecord
Source§fn eq(&self, other: &DeviceRecord) -> bool
fn eq(&self, other: &DeviceRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceRecord
impl Serialize for DeviceRecord
impl Eq for DeviceRecord
impl StructuralPartialEq for DeviceRecord
Auto Trait Implementations§
impl Freeze for DeviceRecord
impl RefUnwindSafe for DeviceRecord
impl Send for DeviceRecord
impl Sync for DeviceRecord
impl Unpin for DeviceRecord
impl UnsafeUnpin for DeviceRecord
impl UnwindSafe for DeviceRecord
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more