pub struct DiscoveryInfoCheck<'a> {
pub phc_url: &'a Url,
pub name: Name,
pub self_check_code: Option<&'a str>,
pub constellation: Option<&'a Constellation>,
}Expand description
Specifies what to check about a api::DiscoveryInfoResp
Fields§
§phc_url: &'a Url§name: Name§self_check_code: Option<&'a str>§constellation: Option<&'a Constellation>Implementations§
Source§impl DiscoveryInfoCheck<'_>
impl DiscoveryInfoCheck<'_>
Sourcepub fn check(
self,
inf: DiscoveryInfoResp,
source: &Url,
) -> Result<DiscoveryInfoResp>
pub fn check( self, inf: DiscoveryInfoResp, source: &Url, ) -> Result<DiscoveryInfoResp>
Checks the given api::DiscoveryInfoResp according to the DiscoveryInfoCheck,
and returns it if all checks out.
Auto Trait Implementations§
impl<'a> Freeze for DiscoveryInfoCheck<'a>
impl<'a> RefUnwindSafe for DiscoveryInfoCheck<'a>
impl<'a> Send for DiscoveryInfoCheck<'a>
impl<'a> Sync for DiscoveryInfoCheck<'a>
impl<'a> Unpin for DiscoveryInfoCheck<'a>
impl<'a> UnsafeUnpin for DiscoveryInfoCheck<'a>
impl<'a> UnwindSafe for DiscoveryInfoCheck<'a>
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> 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