pub struct CasValidationResult {
pub valid: bool,
pub user: Option<String>,
pub attributes: HashMap<String, Vec<String>>,
pub proxy_granting_ticket: Option<String>,
pub proxies: Vec<String>,
pub error_code: Option<String>,
pub error_message: Option<String>,
}Expand description
Result of CAS ticket validation.
Fields§
§valid: boolWhether the ticket was valid.
user: Option<String>Authenticated user ID (CAS principal).
attributes: HashMap<String, Vec<String>>User attributes returned by the CAS server (CAS 3.0).
proxy_granting_ticket: Option<String>Proxy granting ticket (if proxy was requested).
proxies: Vec<String>Chain of proxies (for proxy tickets).
error_code: Option<String>Error code if validation failed.
error_message: Option<String>Error message if validation failed.
Trait Implementations§
Source§impl Clone for CasValidationResult
impl Clone for CasValidationResult
Source§impl Debug for CasValidationResult
impl Debug for CasValidationResult
Source§impl<'de> Deserialize<'de> for CasValidationResult
impl<'de> Deserialize<'de> for CasValidationResult
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 Forget for CasValidationResult
impl Freeze for CasValidationResult
impl RefUnwindSafe for CasValidationResult
impl Send for CasValidationResult
impl Sync for CasValidationResult
impl Unpin for CasValidationResult
impl UnsafeUnpin for CasValidationResult
impl UnwindSafe for CasValidationResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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