pub struct Constellation {
pub id: Id,
pub created_at: NumericDate,
pub inner: Inner,
}Expand description
Public details on the constellation of PubHubs servers (stored in the inner field)
paired with an derived id. Derefs to Inner.
§Comparing constellations
Constellation does not implement PartialEq, because there are two valid ways to compare
constellations c1 and c2, namely c1.id == c2.id and c1.inner == c2.inner, and it should
be clear in the code which one is being used.
Fields§
§id: IdIdentifier for this constellation derived from Inner using a hash.
created_at: NumericDateWhen this constellation was first created by pubhubs central. When two parties have different constellations, the party with the oldest constellation should update.
inner: InnerTrait Implementations§
Source§impl Clone for Constellation
impl Clone for Constellation
Source§fn clone(&self) -> Constellation
fn clone(&self) -> Constellation
Returns a duplicate of the value. Read more
1.0.0 · 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 Constellation
impl Debug for Constellation
Source§impl Deref for Constellation
impl Deref for Constellation
Source§impl<'de> Deserialize<'de> for Constellation
impl<'de> Deserialize<'de> for Constellation
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 From<&Constellation> for ConstellationClaim
impl From<&Constellation> for ConstellationClaim
Source§fn from(c: &Constellation) -> Self
fn from(c: &Constellation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Constellation
impl RefUnwindSafe for Constellation
impl Send for Constellation
impl Sync for Constellation
impl Unpin for Constellation
impl UnsafeUnpin for Constellation
impl UnwindSafe for Constellation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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