pub struct ScimError {
pub status: StatusCode,
pub detail: Option<String>,
pub scim_type: Option<String>,
}Fields§
§status: StatusCode§detail: Option<String>§scim_type: Option<String>Implementations§
Source§impl ScimError
impl ScimError
pub fn new(status: StatusCode, detail: impl Into<String>) -> Self
pub fn bad_request(detail: impl Into<String>) -> Self
pub fn conflict(detail: impl Into<String>) -> Self
pub fn not_found(detail: impl Into<String>) -> Self
pub fn precondition_failed(detail: impl Into<String>) -> Self
pub fn not_implemented(detail: impl Into<String>) -> Self
pub fn with_scim_type(self, scim_type: impl Into<String>) -> Self
pub fn body(&self) -> ScimErrorBody
pub fn into_response(self) -> Result<ApiResponse, RustAuthError>
Trait Implementations§
impl Eq for ScimError
impl StructuralPartialEq for ScimError
Auto Trait Implementations§
impl Freeze for ScimError
impl RefUnwindSafe for ScimError
impl Send for ScimError
impl Sync for ScimError
impl Unpin for ScimError
impl UnsafeUnpin for ScimError
impl UnwindSafe for ScimError
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
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,
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
Compare self to
key and return true if they are equal.