pub struct DiscoveryInfoResp {
pub name: Name,
pub self_check_code: String,
pub version: Option<String>,
pub phc_url: Url,
pub jwt_key: VerifyingKey,
pub enc_key: PublicKey,
pub master_enc_key_part: Option<PublicKey>,
pub constellation_or_id: Option<ConstellationOrId>,
}Expand description
What’s returned by the DiscoveryInfo.
Warning: when modifying DiscoveryInfoResp make sure that
-
PHC will not crash on the outdated disovery info responses returned by the transcryptor and authentication server before they are updated;
-
Old authentication server and transcryptor code will not crash on the updated discovery info response returned by PHC.
Fields§
§name: Name§self_check_code: StringRandom string used by a server to check that it has contact with itself.
version: Option<String>The version of this server (based on git tags).
None if not available for some reason
phc_url: UrlURL of the PubHubs Central server this server tries to connect to.
jwt_key: VerifyingKeyUsed to sign JWTs from this server.
enc_key: PublicKeyUsed to encrypt messages to this server, and to create shared secrets with this server using Diffie-Hellman
master_enc_key_part: Option<PublicKey>Master encryption key part, that is, x_PHC B or x_T B in the notation of the
whitepaper. Only set for PHC or the transcryptor.
constellation_or_id: Option<ConstellationOrId>Details of the other PubHubs servers, according to this server
None when discovery has not been completed.
Trait Implementations§
Source§impl Clone for DiscoveryInfoResp
impl Clone for DiscoveryInfoResp
Source§fn clone(&self) -> DiscoveryInfoResp
fn clone(&self) -> DiscoveryInfoResp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiscoveryInfoResp
impl Debug for DiscoveryInfoResp
Source§impl<'de> Deserialize<'de> for DiscoveryInfoResp
impl<'de> Deserialize<'de> for DiscoveryInfoResp
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>,
Auto Trait Implementations§
impl Freeze for DiscoveryInfoResp
impl RefUnwindSafe for DiscoveryInfoResp
impl Send for DiscoveryInfoResp
impl Sync for DiscoveryInfoResp
impl Unpin for DiscoveryInfoResp
impl UnsafeUnpin for DiscoveryInfoResp
impl UnwindSafe for DiscoveryInfoResp
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,
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>
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