#[repr(i32)]pub enum Code {
Show 168 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,
InvalidNamespaceName = 400_110,
InvalidNamespaceOwners = 400_111,
InvalidNamespaceToken = 400_112,
InvalidServiceName = 400_120,
InvalidServiceOwners = 400_121,
InvalidServiceToken = 400_122,
InvalidServiceMetadata = 400_123,
InvalidServicePorts = 400_124,
InvalidServiceBusiness = 400_125,
InvalidServiceDepartment = 400_126,
InvalidServiceCmdb = 400_127,
InvalidServiceComment = 400_128,
InvalidServiceAliasComment = 400_129,
InvalidInstanceId = 400_130,
InvalidInstanceHost = 400_131,
InvalidInstancePort = 400_132,
InvalidServiceAlias = 400_133,
InvalidNamespaceWithAlias = 400_134,
InvalidServiceAliasOwners = 400_135,
InvalidInstanceProtocol = 400_136,
InvalidInstanceVersion = 400_137,
InvalidInstanceLogicSet = 400_138,
InvalidInstanceIsolate = 400_139,
HealthCheckNotOpen = 400_140,
HeartbeatOnDisabledIns = 400_141,
HeartbeatExceedLimit = 400_142,
HeartbeatTypeNotFound = 400_143,
InvalidMetadata = 400_150,
InvalidRateLimitId = 400_151,
InvalidRateLimitLabels = 400_152,
InvalidRateLimitAmounts = 400_153,
InvalidRateLimitName = 400_154,
InvalidCircuitBreakerId = 400_160,
InvalidCircuitBreakerVersion = 400_161,
InvalidCircuitBreakerName = 400_162,
InvalidCircuitBreakerNamespace = 400_163,
InvalidCircuitBreakerOwners = 400_164,
InvalidCircuitBreakerToken = 400_165,
InvalidCircuitBreakerBusiness = 400_166,
InvalidCircuitBreakerDepartment = 400_167,
InvalidCircuitBreakerComment = 400_168,
CircuitBreakerRuleExisted = 400_169,
InvalidRoutingId = 400_700,
InvalidRoutingPolicy = 400_701,
InvalidRoutingName = 400_702,
InvalidRoutingPriority = 400_703,
InvalidFaultDetectId = 400_900,
InvalidFaultDetectName = 400_901,
InvalidFaultDetectNamespace = 400_902,
FaultDetectRuleExisted = 400_903,
InvalidMatchRule = 400_904,
ServicesExistedMesh = 400_170,
ResourcesExistedMesh = 400_171,
InvalidMeshParameter = 400_172,
InvalidPlatformId = 400_180,
InvalidPlatformName = 400_181,
InvalidPlatformDomain = 400_182,
InvalidPlatformQps = 400_183,
InvalidPlatformToken = 400_184,
InvalidPlatformOwner = 400_185,
InvalidPlatformDepartment = 400_186,
InvalidPlatformComment = 400_187,
NotFoundPlatform = 400_188,
InvalidFluxRateLimitId = 400_190,
InvalidFluxRateLimitQps = 400_191,
InvalidFluxRateLimitSetKey = 400_192,
ExistedResource = 400_201,
NotFoundResource = 400_202,
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,
NotFoundService = 400_301,
NotFoundRouting = 400_302,
NotFoundInstance = 400_303,
NotFoundServiceAlias = 400_304,
NotFoundNamespace = 400_305,
NotFoundSourceService = 400_306,
NotFoundRateLimit = 400_307,
NotFoundCircuitBreaker = 400_308,
NotFoundMasterConfig = 400_309,
NotFoundTagConfig = 400_310,
NotFoundTagConfigOrService = 400_311,
ClientApiNotOpen = 400_401,
NotAllowBusinessService = 400_402,
NotAllowAliasUpdate = 400_501,
NotAllowAliasCreateInstance = 400_502,
NotAllowAliasCreateRouting = 400_503,
NotAllowCreateAliasForAlias = 400_504,
NotAllowAliasCreateRateLimit = 400_505,
NotAllowAliasBindRule = 400_506,
NotAllowDifferentNamespaceBindRule = 400_507,
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,
ParseRoutingException = 500_004,
ParseRateLimitException = 500_005,
ParseCircuitBreakerException = 500_006,
HeartbeatException = 500_007,
InstanceRegisTimeout = 500_008,
InvalidConfigFileGroupName = 400_801,
InvalidConfigFileName = 400_802,
InvalidConfigFileContentLength = 400_803,
InvalidConfigFileFormat = 400_804,
InvalidConfigFileTags = 400_805,
InvalidWatchConfigFileFormat = 400_806,
NotFoundResourceConfigFile = 400_807,
InvalidConfigFileTemplateName = 400_808,
EncryptConfigFileException = 400_809,
GroupExistActiveRelease = 400_810,
DecryptConfigFileException = 400_811,
InvalidUserOwners = 400_410,
InvalidUserId = 400_411,
InvalidUserPassword = 400_412,
InvalidUserMobile = 400_413,
InvalidUserEmail = 400_414,
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
InvalidNamespaceName = 400_110
InvalidNamespaceOwners = 400_111
InvalidNamespaceToken = 400_112
InvalidServiceName = 400_120
InvalidServiceOwners = 400_121
InvalidServiceToken = 400_122
InvalidServiceMetadata = 400_123
InvalidServicePorts = 400_124
InvalidServiceBusiness = 400_125
InvalidServiceDepartment = 400_126
InvalidServiceCmdb = 400_127
InvalidServiceComment = 400_128
InvalidServiceAliasComment = 400_129
InvalidInstanceId = 400_130
InvalidInstanceHost = 400_131
InvalidInstancePort = 400_132
InvalidServiceAlias = 400_133
InvalidNamespaceWithAlias = 400_134
InvalidServiceAliasOwners = 400_135
InvalidInstanceProtocol = 400_136
InvalidInstanceVersion = 400_137
InvalidInstanceLogicSet = 400_138
InvalidInstanceIsolate = 400_139
HealthCheckNotOpen = 400_140
HeartbeatOnDisabledIns = 400_141
HeartbeatExceedLimit = 400_142
HeartbeatTypeNotFound = 400_143
InvalidMetadata = 400_150
InvalidRateLimitId = 400_151
InvalidRateLimitLabels = 400_152
InvalidRateLimitAmounts = 400_153
InvalidRateLimitName = 400_154
InvalidCircuitBreakerId = 400_160
InvalidCircuitBreakerVersion = 400_161
InvalidCircuitBreakerName = 400_162
InvalidCircuitBreakerNamespace = 400_163
InvalidCircuitBreakerOwners = 400_164
InvalidCircuitBreakerToken = 400_165
InvalidCircuitBreakerBusiness = 400_166
InvalidCircuitBreakerDepartment = 400_167
InvalidCircuitBreakerComment = 400_168
CircuitBreakerRuleExisted = 400_169
InvalidRoutingId = 400_700
InvalidRoutingPolicy = 400_701
InvalidRoutingName = 400_702
InvalidRoutingPriority = 400_703
InvalidFaultDetectId = 400_900
InvalidFaultDetectName = 400_901
InvalidFaultDetectNamespace = 400_902
FaultDetectRuleExisted = 400_903
InvalidMatchRule = 400_904
ServicesExistedMesh = 400_170
network relative codes
ResourcesExistedMesh = 400_171
InvalidMeshParameter = 400_172
InvalidPlatformId = 400_180
platform relative codes
InvalidPlatformName = 400_181
InvalidPlatformDomain = 400_182
InvalidPlatformQps = 400_183
InvalidPlatformToken = 400_184
InvalidPlatformOwner = 400_185
InvalidPlatformDepartment = 400_186
InvalidPlatformComment = 400_187
NotFoundPlatform = 400_188
InvalidFluxRateLimitId = 400_190
flux relative codes
InvalidFluxRateLimitQps = 400_191
InvalidFluxRateLimitSetKey = 400_192
ExistedResource = 400_201
NotFoundResource = 400_202
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
NotFoundService = 400_301
NotFoundRouting = 400_302
NotFoundInstance = 400_303
NotFoundServiceAlias = 400_304
NotFoundNamespace = 400_305
NotFoundSourceService = 400_306
NotFoundRateLimit = 400_307
NotFoundCircuitBreaker = 400_308
NotFoundMasterConfig = 400_309
NotFoundTagConfig = 400_310
NotFoundTagConfigOrService = 400_311
ClientApiNotOpen = 400_401
NotAllowBusinessService = 400_402
NotAllowAliasUpdate = 400_501
NotAllowAliasCreateInstance = 400_502
NotAllowAliasCreateRouting = 400_503
NotAllowCreateAliasForAlias = 400_504
NotAllowAliasCreateRateLimit = 400_505
NotAllowAliasBindRule = 400_506
NotAllowDifferentNamespaceBindRule = 400_507
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
ParseRoutingException = 500_004
ParseRateLimitException = 500_005
ParseCircuitBreakerException = 500_006
HeartbeatException = 500_007
InstanceRegisTimeout = 500_008
InvalidConfigFileGroupName = 400_801
config center status codes
InvalidConfigFileName = 400_802
InvalidConfigFileContentLength = 400_803
InvalidConfigFileFormat = 400_804
InvalidConfigFileTags = 400_805
InvalidWatchConfigFileFormat = 400_806
NotFoundResourceConfigFile = 400_807
InvalidConfigFileTemplateName = 400_808
EncryptConfigFileException = 400_809
GroupExistActiveRelease = 400_810
DecryptConfigFileException = 400_811
InvalidUserOwners = 400_410
auth codes
InvalidUserId = 400_411
InvalidUserPassword = 400_412
InvalidUserMobile = 400_413
InvalidUserEmail = 400_414
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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§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<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