pub struct Replica {Show 18 fields
pub id: EntityId,
pub name: Option<String>,
pub device: Option<EntityId>,
pub device_name: Option<String>,
pub endpoint: Option<[u8; 32]>,
pub signing: Option<VerifyingKey>,
pub this: bool,
pub revoked: bool,
pub deleted: bool,
pub ai_agent: bool,
pub set_aside: usize,
pub holds_secrets: bool,
pub given_secrets: bool,
pub asks_for_secrets: bool,
pub secrets_from: Option<EntityId>,
pub shared: Option<SpaceId>,
pub member: Option<String>,
pub marks: DeviceMarks,
}Expand description
A replica of the library, as its personal space lists it.
Fields§
§id: EntityIdThe replica.
name: Option<String>Its name: the name of the app that keeps it.
device: Option<EntityId>Its device.
device_name: Option<String>Its device’s name.
endpoint: Option<[u8; 32]>Its endpoint ID, which the others connect to, if it has one.
signing: Option<VerifyingKey>Its verifying key.
this: boolWhether it is this replica.
revoked: boolWhether it was revoked, every key of it: no replica sends it anything, and of its changes only those that every replica which revoked it had count.
deleted: boolWhether its record was deleted, which keeps it from nothing: only revoking does.
ai_agent: boolWhether it is an AI agent’s, as the change that listed its key says.
set_aside: usizeHow many of its changes are set aside in the personal space, waiting for review.
holds_secrets: boolWhether it holds the secrets: the records give it the secrets keys.
given_secrets: boolWhether the records give it any secrets key at all, by whichever replica, so that it may read the secrets: what revoking it cannot take back. A replica that turned against its user can stop holding them, as the records say, by listing a key on its record.
asks_for_secrets: boolWhether it asked for the secrets, and was not given them yet.
secrets_from: Option<EntityId>The replica it takes the secrets from: the one it asked, or itself.
For another user’s replica, a shared space that lists it, with which this replica
syncs it; None for the user’s own.
member: Option<String>For another user’s replica, the name of the member it is of there.
marks: DeviceMarksHow the person marked its device: as an archive node, and as kept away from home; for another user’s replica, unmarked, as only its own account says.
Trait Implementations§
impl Eq for Replica
impl StructuralPartialEq for Replica
Auto Trait Implementations§
impl Forget for Replica
impl Freeze for Replica
impl Move for Replica
impl RefUnwindSafe for Replica
impl Send for Replica
impl Sync for Replica
impl Unpin for Replica
impl UnsafeUnpin for Replica
impl UnwindSafe for Replica
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.