pub enum AuthRequiredReason {
SignedOut,
Expired,
NoWorkspace,
}Expand description
Why an out-of-the-box turn could not reach Parslee inference.
The wire spellings are signed_out | expired | no_workspace; a host
branches on these, not on the message.
Variants§
SignedOut
Nobody is signed in.
Expired
Reserved. Nothing in production emits this yet: a stale credential
record still resolves, so the bearer is sent and Parslee’s 401 comes
back untyped. The reason exists so hosts can render it (they already
treat it like signed_out) and so the mapping is in place when those
401 sites are typed. Covered by a constructed-value test only — there
is deliberately no claim here that a real turn reaches it.
NoWorkspace
Signed in, but the account has no workspace yet.
Implementations§
Source§impl AuthRequiredReason
impl AuthRequiredReason
Sourcepub fn remedy(self) -> &'static str
pub fn remedy(self) -> &'static str
The host-facing remedy for this reason — the exact wire message.
Not the provider’s own text: the typed detail behind it reads like
no credential for proprietary provider 'parslee' (model parslee/advisor): …, which is the right thing in a log and the wrong
thing on a card.
Trait Implementations§
Source§impl Clone for AuthRequiredReason
impl Clone for AuthRequiredReason
impl Copy for AuthRequiredReason
Source§impl Debug for AuthRequiredReason
impl Debug for AuthRequiredReason
impl Eq for AuthRequiredReason
Source§impl PartialEq for AuthRequiredReason
impl PartialEq for AuthRequiredReason
impl StructuralPartialEq for AuthRequiredReason
Auto Trait Implementations§
impl Freeze for AuthRequiredReason
impl RefUnwindSafe for AuthRequiredReason
impl Send for AuthRequiredReason
impl Sync for AuthRequiredReason
impl Unpin for AuthRequiredReason
impl UnsafeUnpin for AuthRequiredReason
impl UnwindSafe for AuthRequiredReason
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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