pub(crate) enum Auth<R: Addresses> {
None,
Cookie {
path: R::Path,
},
Unrecognized(Value),
}
Expand description
An authentication method for RPC implementations to use, along with its related parameters.
Variants§
None
No authentication is needed or should be expected.
Cookie
Cookie-based authentication should be used.
Unrecognized(Value)
Unrecognized authentication method.
(Serde will deserialize into this whenever the auth field is something unrecognized.)
Implementations§
Source§impl Auth<Unresolved>
impl Auth<Unresolved>
Source§impl Auth<Resolved>
impl Auth<Resolved>
Sourcefn check_absolute_paths(&self) -> Result<(), ResolveError>
fn check_absolute_paths(&self) -> Result<(), ResolveError>
Return an error if any path in self
is not absolute..
Trait Implementations§
Source§impl<'de, R: Addresses> Deserialize<'de> for Auth<R>where
R::Path: Deserialize<'de>,
impl<'de, R: Addresses> Deserialize<'de> for Auth<R>where
R::Path: Deserialize<'de>,
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
Auto Trait Implementations§
impl<R> Freeze for Auth<R>
impl<R> RefUnwindSafe for Auth<R>
impl<R> Send for Auth<R>
impl<R> Sync for Auth<R>
impl<R> Unpin for Auth<R>
impl<R> UnwindSafe for Auth<R>
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,
§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>
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