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: ClusterName
Fields of ClusterNotFound
cluster: ClusterName
Fields of ClusterIsStateOwner
cluster: ClusterName
state: StateName
Fields of StateNameConflict
state: StateName
Fields of StateNotFound
state: StateName
Fields of AzureLocationExists
state: StateName
region: AzureRegion
Fields of VolumeNotFound
state: StateName
volume: VolumeName
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