pub struct ErrorId(_);
Expand description

Error ID returned in ApiError responses.

Implementations

Creates a new error ID.

Returns the numeric ID of the error.

Returns true if this is an ErrorId::REQUEST_REQUIRES_AUTHENTICATION error.

Returns a descriptive name for the error.

0 InternalServerError

1 APIAccessDeactivated

2 JSONInvalid

3 APINameInvalid

4 APIVersionInvalid

5 RequestIDInvalid

6 RequestTypeMissingOrEmpty

7 RequestTypeUnknown

8 RequestRequiresAuthentication

50 TokenRequestDenied

51 TokenRequestCurrentlyOngoing

52 TokenRequestPluginNameInvalid

53 TokenRequestDeveloperNameInvalid

54 TokenRequestPluginIconInvalid

100 AuthenticationTokenMissing

101 AuthenticationPluginNameMissing

102 AuthenticationPluginDeveloperMissing

150 ModelIDMissing

151 ModelIDInvalid

152 ModelIDNotFound

153 ModelLoadCooldownNotOver

154 CannotCurrentlyChangeModel

200 HotkeyQueueFull

201 HotkeyExecutionFailedBecauseNoModelLoaded

202 HotkeyIDNotFoundInModel

203 HotkeyCooldownNotOver

204 HotkeyIDFoundButHotkeyDataInvalid

205 HotkeyExecutionFailedBecauseBadState

206 HotkeyUnknownExecutionFailure

207 HotkeyExecutionFailedBecauseLive2DItemNotFound

208 HotkeyExecutionFailedBecauseLive2DItemsDoNotSupportThisHotkeyType

250 ColorTintRequestNoModelLoaded

251 ColorTintRequestMatchOrColorMissing

252 ColorTintRequestInvalidColorValue

300 MoveModelRequestNoModelLoaded

301 MoveModelRequestMissingFields

302 MoveModelRequestValuesOutOfRange

350 CustomParamNameInvalid

351 CustomParamValuesInvalid

352 CustomParamAlreadyCreatedByOtherPlugin

353 CustomParamExplanationTooLong

354 CustomParamDefaultParamNameNotAllowed

355 CustomParamLimitPerPluginExceeded

356 CustomParamLimitTotalExceeded

400 CustomParamDeletionNameInvalid

401 CustomParamDeletionNotFound

402 CustomParamDeletionCreatedByOtherPlugin

403 CustomParamDeletionCannotDeleteDefaultParam

450 InjectDataNoDataProvided

451 InjectDataValueInvalid

452 InjectDataWeightInvalid

453 InjectDataParamNameNotFound

454 InjectDataParamControlledByOtherPlugin

455 InjectDataModeUnknown

500 ParameterValueRequestParameterNotFound

550 NDIConfigCooldownNotOver

551 NDIConfigResolutionInvalid

600 ExpressionStateRequestInvalidFilename

601 ExpressionStateRequestFileNotFound

650 ExpressionActivationRequestInvalidFilename

651 ExpressionActivationRequestFileNotFound

652 ExpressionActivationRequestNoModelLoaded

700 SetCurrentModelPhysicsRequestNoModelLoaded

701 SetCurrentModelPhysicsRequestModelHasNoPhysics

702 SetCurrentModelPhysicsRequestPhysicsControlledByOtherPlugin

703 SetCurrentModelPhysicsRequestNoOverridesProvided

704 SetCurrentModelPhysicsRequestPhysicsGroupIDNotFound

705 SetCurrentModelPhysicsRequestNoOverrideValueProvided

706 SetCurrentModelPhysicsRequestDuplicatePhysicsGroupID

750 ItemFileNameMissing

751 ItemFileNameNotFound

752 ItemLoadLoadCooldownNotOver

753 CannotCurrentlyLoadItem

754 CannotLoadItemSceneFull

755 ItemOrderInvalid

756 ItemOrderAlreadyTaken

757 ItemLoadValuesInvalid

800 CannotCurrentlyUnloadItem

850 ItemAnimationControlInstanceIDNotFound

851 ItemAnimationControlUnsupportedItemType

852 ItemAnimationControlAutoStopFramesInvalid

853 ItemAnimationControlTooManyAutoStopFrames

854 ItemAnimationControlSimpleImageDoesNotSupportAnim

900 ItemMoveRequestInstanceIDNotFound

901 ItemMoveRequestInvalidFadeMode

902 ItemMoveRequestItemOrderTakenOrInvalid

903 ItemMoveRequestCannotCurrentlyChangeOrder

950 EventSubscriptionRequestEventTypeUnknown

100_000 Event_TestEvent_TestMessageTooLong

100_050 Event_ModelLoadedEvent_ModelIDInvalid

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Formats the error ID, including its name.

Example

assert_eq!(
    format!("{}", ErrorId::REQUEST_REQUIRES_AUTHENTICATION),
    "8 (RequestRequiresAuthentication)"
)
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more