pub struct InstanceId(pub String);Expand description
The stable identifier of the Ijima instance that authored a record.
Typed newtype (IA convention) so an instance id is never confused with
a free string, a crate::NamespaceId, or an
AuthorityScope.
Tuple Fields§
§0: StringImplementations§
Source§impl InstanceId
impl InstanceId
Sourcepub fn local() -> Self
pub fn local() -> Self
The local instance id — the author of every record in a single-instance 0.1.0 deployment.
This is a pure constant ("local") in the domain crate; the
IJIMA_INSTANCE_ID override is a Phase 5 concern, applied at the
server boundary once instances actually matter. Keeping core
process-environment-free preserves the “pure, backend-free” contract.
Trait Implementations§
Source§impl Clone for InstanceId
impl Clone for InstanceId
Source§fn clone(&self) -> InstanceId
fn clone(&self) -> InstanceId
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 InstanceId
impl Debug for InstanceId
Source§impl Default for InstanceId
impl Default for InstanceId
impl Eq for InstanceId
Source§impl Hash for InstanceId
impl Hash for InstanceId
Source§impl PartialEq for InstanceId
impl PartialEq for InstanceId
impl StructuralPartialEq for InstanceId
Auto Trait Implementations§
impl Freeze for InstanceId
impl RefUnwindSafe for InstanceId
impl Send for InstanceId
impl Sync for InstanceId
impl Unpin for InstanceId
impl UnsafeUnpin for InstanceId
impl UnwindSafe for InstanceId
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