#[repr(i32)]pub enum Code {
Show 79 variants
Unknown = 0,
ExecuteSuccess = 200_000,
DataNoChange = 200_001,
NoNeedUpdate = 200_002,
BadRequest = 400_000,
ParseException = 400_001,
EmptyRequest = 400_002,
BatchSizeOverLimit = 400_003,
InvalidDiscoverResource = 400_004,
InvalidRequestId = 400_100,
InvalidUserName = 400_101,
InvalidUserToken = 400_102,
InvalidParameter = 400_103,
EmptyQueryParameter = 400_104,
InvalidQueryInsParameter = 400_105,
HealthCheckNotOpen = 400_140,
HeartbeatOnDisabledIns = 400_141,
HeartbeatExceedLimit = 400_142,
HeartbeatTypeNotFound = 400_143,
InvalidMetadata = 400_150,
InvalidMatchRule = 400_904,
ServicesExistedMesh = 400_170,
ResourcesExistedMesh = 400_171,
InvalidMeshParameter = 400_172,
ExistedResource = 400_201,
NamespaceExistedServices = 400_203,
ServiceExistedInstances = 400_204,
ServiceExistedRoutings = 400_205,
ServiceExistedRateLimits = 400_206,
ExistReleasedConfig = 400_207,
SameInstanceRequest = 400_208,
ServiceExistedCircuitBreakers = 400_209,
ServiceExistedAlias = 400_210,
NamespaceExistedMeshResources = 400_211,
NamespaceExistedCircuitBreakers = 400_212,
ServiceSubscribedByMeshes = 400_213,
ServiceExistedFluxRateLimits = 400_214,
NamespaceExistedConfigGroups = 400_219,
ClientApiNotOpen = 400_401,
NotFoundResource = 404_202,
Unauthorized = 401_000,
NotAllowedAccess = 401_001,
CmdbNotFindHost = 404_001,
DataConflict = 409_000,
InstanceTooManyRequests = 429_001,
IpRateLimit = 429_002,
ApiRateLimit = 403_003,
ExecuteException = 500_000,
StoreLayerException = 500_001,
CmdbPluginException = 500_002,
HeartbeatException = 500_007,
InstanceRegisTimeout = 500_008,
EncryptConfigFileException = 400_809,
GroupExistActiveRelease = 400_810,
DecryptConfigFileException = 400_811,
InvalidUserOwners = 400_410,
InvalidUserId = 400_411,
InvalidUserPassword = 400_412,
InvalidUserGroupOwners = 400_420,
InvalidUserGroupId = 400_421,
InvalidAuthStrategyOwners = 400_430,
InvalidAuthStrategyName = 400_431,
InvalidAuthStrategyId = 400_432,
InvalidPrincipalType = 400_440,
UserExisted = 400_215,
UserGroupExisted = 400_216,
AuthStrategyRuleExisted = 400_217,
SubAccountExisted = 400_218,
NotFoundUser = 400_312,
NotFoundOwnerUser = 400_313,
NotFoundUserGroup = 400_314,
NotFoundAuthStrategyRule = 400_315,
NotAllowModifyDefaultStrategyPrincipal = 400_508,
NotAllowModifyOwnerDefaultStrategy = 400_509,
EmptyAutToken = 401_002,
TokenDisabled = 401_003,
TokenNotExisted = 401_004,
AuthTokenForbidden = 403_001,
OperationRoleForbidden = 403_002,
}Variants§
Unknown = 0
base module status codes
ExecuteSuccess = 200_000
DataNoChange = 200_001
NoNeedUpdate = 200_002
BadRequest = 400_000
ParseException = 400_001
EmptyRequest = 400_002
BatchSizeOverLimit = 400_003
InvalidDiscoverResource = 400_004
InvalidRequestId = 400_100
InvalidUserName = 400_101
InvalidUserToken = 400_102
InvalidParameter = 400_103
EmptyQueryParameter = 400_104
InvalidQueryInsParameter = 400_105
HealthCheckNotOpen = 400_140
HeartbeatOnDisabledIns = 400_141
HeartbeatExceedLimit = 400_142
HeartbeatTypeNotFound = 400_143
InvalidMetadata = 400_150
InvalidMatchRule = 400_904
ServicesExistedMesh = 400_170
network relative codes
ResourcesExistedMesh = 400_171
InvalidMeshParameter = 400_172
ExistedResource = 400_201
NamespaceExistedServices = 400_203
ServiceExistedInstances = 400_204
ServiceExistedRoutings = 400_205
ServiceExistedRateLimits = 400_206
ExistReleasedConfig = 400_207
SameInstanceRequest = 400_208
ServiceExistedCircuitBreakers = 400_209
ServiceExistedAlias = 400_210
NamespaceExistedMeshResources = 400_211
NamespaceExistedCircuitBreakers = 400_212
ServiceSubscribedByMeshes = 400_213
ServiceExistedFluxRateLimits = 400_214
NamespaceExistedConfigGroups = 400_219
ClientApiNotOpen = 400_401
NotFoundResource = 404_202
NotAllowedAccess = 401_001
CmdbNotFindHost = 404_001
DataConflict = 409_000
InstanceTooManyRequests = 429_001
IpRateLimit = 429_002
ApiRateLimit = 403_003
ExecuteException = 500_000
StoreLayerException = 500_001
CmdbPluginException = 500_002
HeartbeatException = 500_007
InstanceRegisTimeout = 500_008
EncryptConfigFileException = 400_809
config center status codes
GroupExistActiveRelease = 400_810
DecryptConfigFileException = 400_811
InvalidUserOwners = 400_410
auth codes
InvalidUserId = 400_411
InvalidUserPassword = 400_412
InvalidUserGroupOwners = 400_420
InvalidUserGroupId = 400_421
InvalidAuthStrategyOwners = 400_430
InvalidAuthStrategyName = 400_431
InvalidAuthStrategyId = 400_432
InvalidPrincipalType = 400_440
UserExisted = 400_215
UserGroupExisted = 400_216
AuthStrategyRuleExisted = 400_217
SubAccountExisted = 400_218
NotFoundUser = 400_312
NotFoundOwnerUser = 400_313
NotFoundUserGroup = 400_314
NotFoundAuthStrategyRule = 400_315
NotAllowModifyDefaultStrategyPrincipal = 400_508
NotAllowModifyOwnerDefaultStrategy = 400_509
EmptyAutToken = 401_002
TokenDisabled = 401_003
TokenNotExisted = 401_004
AuthTokenForbidden = 403_001
OperationRoleForbidden = 403_002
Implementations§
Source§impl Code
impl Code
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Code
impl Ord for Code
Source§impl PartialOrd for Code
impl PartialOrd for Code
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request