Enum statehub_api::v0::StatehubError [−][src]
pub enum StatehubError {
InvalidToken,
ClusterNotAuthorized {
permission: Permission,
resource_name: String,
resource_type: String,
},
ClusterNameConflict {
cluster: ClusterName,
},
ClusterNotFound {
cluster: ClusterName,
},
ClusterIsStateOwner {
cluster: ClusterName,
state: StateName,
},
StateNameConflict {
state: StateName,
},
StateNotFound {
state: StateName,
},
AwsLocationExists {
state: StateName,
region: AwsRegion,
},
AzureLocationExists {
state: StateName,
region: AzureRegion,
},
VolumeNotFound {
state: StateName,
volume: VolumeName,
},
UnknownError,
}Variants
Fields of ClusterNotAuthorized
Fields of ClusterNameConflict
cluster: ClusterNameFields of ClusterNotFound
cluster: ClusterNameFields of ClusterIsStateOwner
cluster: ClusterNamestate: StateNameFields of StateNameConflict
state: StateNameFields of StateNotFound
state: StateNameFields of AzureLocationExists
state: StateNameregion: AzureRegionFields of VolumeNotFound
state: StateNamevolume: VolumeNameTrait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StatehubError
impl Send for StatehubError
impl Sync for StatehubError
impl Unpin for StatehubError
impl UnwindSafe for StatehubError
Blanket Implementations
Mutably borrows from an owned value. Read more