pub struct PublisherIdentity {
pub did: Option<String>,
}Expand description
The publisher’s verified identity (EV4 authn-on-publish). Binds a publish to a DID when the verified identity is available.
#446-gated stub: until #446 lands, service-to-service IPC callers
resolve as anonymous (key-derived identity lost over UDS), so did is
None on those paths. A None DID is treated as fail-closed for the
confidential profile (an anonymous publisher cannot be bound to a DID), with
a // TODO(#446) seam for the real identity. Do NOT fake a verified DID.
Fields§
§did: Option<String>The publisher’s verified DID, when known. None on #446-affected IPC
paths (anonymous) — confidential publish fails-closed in that case.
Implementations§
Source§impl PublisherIdentity
impl PublisherIdentity
Sourcepub fn anonymous() -> Self
pub fn anonymous() -> Self
An anonymous publisher (no verified DID) — the #446-affected default.
Sourcepub fn verified(did: impl Into<String>) -> Self
pub fn verified(did: impl Into<String>) -> Self
A publisher with a verified DID (post-#446, or non-IPC paths).
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Is a verified DID bound? (Confidential publish requires this.)
Trait Implementations§
Source§impl Clone for PublisherIdentity
impl Clone for PublisherIdentity
Source§fn clone(&self) -> PublisherIdentity
fn clone(&self) -> PublisherIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PublisherIdentity
impl Debug for PublisherIdentity
Auto Trait Implementations§
impl Freeze for PublisherIdentity
impl RefUnwindSafe for PublisherIdentity
impl Send for PublisherIdentity
impl Sync for PublisherIdentity
impl Unpin for PublisherIdentity
impl UnsafeUnpin for PublisherIdentity
impl UnwindSafe for PublisherIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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