pub enum ErrorData {
PlatformNotSupported {
platform: String,
permission_set_id: String,
},
BindingTargetNotSupported {
platform: String,
binding_target: String,
permission_set_id: String,
},
VariableNotFound {
variable: String,
},
InvalidPermissionSet {
message: String,
},
GeneratorError {
platform: String,
message: String,
},
SerializationError {
message: String,
},
PermissionFileIoError {
path: String,
message: String,
},
Other {
message: String,
},
}Expand description
Errors that occur in permission operations.
Variants§
PlatformNotSupported
Platform is not supported by the permission set.
Fields
BindingTargetNotSupported
Binding target is not supported by the platform.
Fields
VariableNotFound
Required variable not found in permission context.
InvalidPermissionSet
Permission set format is invalid.
GeneratorError
Permission generator failed for the specified platform.
Fields
SerializationError
Serialization or deserialization of permission data failed.
PermissionFileIoError
Permission file I/O operation failed.
Fields
Other
Generic permission error for uncommon cases.
Trait Implementations§
Source§impl AlienErrorData for ErrorData
impl AlienErrorData for ErrorData
Source§fn http_status_code(&self) -> u16
fn http_status_code(&self) -> u16
HTTP status code for this error (defaults to 500).
Source§fn retryable_inherit(&self) -> Option<bool>
fn retryable_inherit(&self) -> Option<bool>
Whether to inherit the retryable flag from the source error.
Returns None if this error should inherit from source, Some(value) for explicit value.
Source§fn internal_inherit(&self) -> Option<bool>
fn internal_inherit(&self) -> Option<bool>
Whether to inherit the internal flag from the source error.
Returns None if this error should inherit from source, Some(value) for explicit value.
Source§fn http_status_code_inherit(&self) -> Option<u16>
fn http_status_code_inherit(&self) -> Option<u16>
Whether to inherit the HTTP status code from the source error.
Returns None if this error should inherit from source, Some(value) for explicit value.
Source§impl<'de> Deserialize<'de> for ErrorData
impl<'de> Deserialize<'de> for ErrorData
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 Freeze for ErrorData
impl RefUnwindSafe for ErrorData
impl Send for ErrorData
impl Sync for ErrorData
impl Unpin for ErrorData
impl UnsafeUnpin for ErrorData
impl UnwindSafe for ErrorData
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,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.