pub enum ValidationError {
InvalidIssuer,
InvalidTarget(String, String),
InvalidComponent(String),
Expired,
InvalidSignature,
NotValidYet,
MissingWascapClaims,
HashMismatch,
InvalidJson(String),
InvalidHostId(String),
InvalidTargetUrl(String, String),
InvalidOriginUrl(String, String),
}
Expand description
All errors that can occur when validating an invocation
Variants§
InvalidIssuer
Issuer of the invocation is not authorized for this cluster
InvalidTarget(String, String)
The target of the invocation is not the same as the provider
InvalidComponent(String)
The component that sent the request is not linked to the provider
Expired
InvalidSignature
The signature on the claims is invalid
NotValidYet
Claims are not valid yet. This occurs when the nbf
field is in the future
MissingWascapClaims
Wascap metadata is not present
HashMismatch
The hash on the invocation doesn’t match the hash on the claims
InvalidJson(String)
The claims are not valid JSON
InvalidHostId(String)
Host ID is not a valid nkey identity
InvalidTargetUrl(String, String)
The target of the invocation is not valid
InvalidOriginUrl(String, String)
The origin of the invocation is not valid
Trait Implementations§
source§impl Debug for ValidationError
impl Debug for ValidationError
source§impl Display for ValidationError
impl Display for ValidationError
source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ValidationError> for InvocationError
impl From<ValidationError> for InvocationError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request