pub enum AddonManifestError {
Show 24 variants
UnsupportedProtocolVersion {
actual: String,
},
EmptyField {
field: &'static str,
},
InvalidBaseUrl,
InvalidResourcePath {
path: String,
},
InvalidDeclarationPath {
declaration: &'static str,
path: String,
},
DuplicateResource {
resource: AddonResource,
},
DuplicateDeclaration {
declaration: &'static str,
id: String,
},
UnknownHostedPageReference {
entry_point_id: String,
hosted_page_id: String,
},
EmptyResources,
MissingDeclaredScope {
resource: AddonResource,
scope: AddonScope,
},
MissingDeclaredScopeForDeclaration {
declaration: &'static str,
scope: AddonScope,
},
InvalidConfigurationSchema {
message: String,
},
InvalidTimeout {
value: u64,
},
InvalidMaxAttempts {
value: u32,
},
MissingAuthToken {
auth: AddonAuth,
},
MissingRuntimeReference,
InvalidRuntimeReference,
UnknownSecretReferenceField {
field_id: String,
},
DuplicateSecretReferenceBinding {
field_id: String,
},
SecretReferenceContainsValue {
field_id: String,
},
ResourceNotDeclared {
resource: AddonResource,
},
EventSubscriptionNotDeclared {
subscription_id: String,
},
TaskNotDeclared {
task_id: String,
},
InvalidEnvelope {
message: String,
},
}Variants§
UnsupportedProtocolVersion
EmptyField
InvalidBaseUrl
InvalidResourcePath
InvalidDeclarationPath
DuplicateResource
Fields
§
resource: AddonResourceDuplicateDeclaration
UnknownHostedPageReference
EmptyResources
MissingDeclaredScope
MissingDeclaredScopeForDeclaration
InvalidConfigurationSchema
InvalidTimeout
InvalidMaxAttempts
MissingAuthToken
MissingRuntimeReference
InvalidRuntimeReference
UnknownSecretReferenceField
DuplicateSecretReferenceBinding
SecretReferenceContainsValue
ResourceNotDeclared
Fields
§
resource: AddonResourceEventSubscriptionNotDeclared
TaskNotDeclared
InvalidEnvelope
Trait Implementations§
Source§impl Clone for AddonManifestError
impl Clone for AddonManifestError
Source§fn clone(&self) -> AddonManifestError
fn clone(&self) -> AddonManifestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddonManifestError
impl Debug for AddonManifestError
Source§impl Display for AddonManifestError
impl Display for AddonManifestError
Source§impl Error for AddonManifestError
impl Error for AddonManifestError
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 PartialEq for AddonManifestError
impl PartialEq for AddonManifestError
Source§fn eq(&self, other: &AddonManifestError) -> bool
fn eq(&self, other: &AddonManifestError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AddonManifestError
impl StructuralPartialEq for AddonManifestError
Auto Trait Implementations§
impl Freeze for AddonManifestError
impl RefUnwindSafe for AddonManifestError
impl Send for AddonManifestError
impl Sync for AddonManifestError
impl Unpin for AddonManifestError
impl UnsafeUnpin for AddonManifestError
impl UnwindSafe for AddonManifestError
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