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
InvalidToken
ClusterNotAuthorized
ClusterNameConflict
Fields
cluster: ClusterName
ClusterNotFound
Fields
cluster: ClusterName
ClusterIsStateOwner
StateNameConflict
Fields
state: StateName
StateNotFound
Fields
state: StateName
AwsLocationExists
AzureLocationExists
VolumeNotFound
UnknownError
Trait 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