pub struct InventoryEntry { /* private fields */ }Expand description
Derived AppView projection. It is an index, never identity authority.
Live discovery data is intentionally absent. In particular, this type
cannot carry a QUIC URL or certificate hash; callers obtain rotating reach
through FederationIntake::resolve at connect time.
Implementations§
Source§impl InventoryEntry
impl InventoryEntry
Sourcepub fn local(
did: impl Into<String>,
handle: Option<String>,
tenant: impl Into<String>,
pds_endpoint: Option<String>,
) -> Result<Self>
pub fn local( did: impl Into<String>, handle: Option<String>, tenant: impl Into<String>, pds_endpoint: Option<String>, ) -> Result<Self>
Build a local projection from an authority-owned hosted-account source.
This constructor validates the invariant at the read-model boundary: only a local entry may carry a tenant, and a local entry must carry one.
Sourcepub fn indexed_federated(
did: impl Into<String>,
handle: Option<String>,
pds_endpoint: Option<String>,
) -> Result<Self>
pub fn indexed_federated( did: impl Into<String>, handle: Option<String>, pds_endpoint: Option<String>, ) -> Result<Self>
Build a foreign projection from already-resolved federation intake.
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Revalidate a projection before a derived store accepts it.
Sourcepub fn kind(&self) -> InventoryKind
pub fn kind(&self) -> InventoryKind
Local, federated, or unauthenticated classification.
Sourcepub fn tenant(&self) -> Option<&str>
pub fn tenant(&self) -> Option<&str>
Authority-resolved local tenant, always None for federation intake.
Sourcepub fn pds_endpoint(&self) -> Option<&str>
pub fn pds_endpoint(&self) -> Option<&str>
PDS endpoint pointer. This is not live transport reach.
Trait Implementations§
Source§impl Clone for InventoryEntry
impl Clone for InventoryEntry
Source§fn clone(&self) -> InventoryEntry
fn clone(&self) -> InventoryEntry
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 InventoryEntry
impl Debug for InventoryEntry
Source§impl<'de> Deserialize<'de> for InventoryEntry
impl<'de> Deserialize<'de> for InventoryEntry
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>,
Source§impl PartialEq for InventoryEntry
impl PartialEq for InventoryEntry
Source§fn eq(&self, other: &InventoryEntry) -> bool
fn eq(&self, other: &InventoryEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for InventoryEntry
impl Serialize for InventoryEntry
impl Eq for InventoryEntry
impl StructuralPartialEq for InventoryEntry
Auto Trait Implementations§
impl Freeze for InventoryEntry
impl RefUnwindSafe for InventoryEntry
impl Send for InventoryEntry
impl Sync for InventoryEntry
impl Unpin for InventoryEntry
impl UnsafeUnpin for InventoryEntry
impl UnwindSafe for InventoryEntry
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<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
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
§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