Skip to main content

ErrorCode

Enum ErrorCode 

Source
#[repr(i32)]
pub enum ErrorCode {
Show 65 variants ERROR_CODE_UNSPECIFIED = 0, ERROR_CODE_BAD_REQUEST = 1, ERROR_CODE_INVALID_ARGUMENT = 2, ERROR_CODE_INSUFFICIENT_FUNDS = 3, ERROR_CODE_UNKNOWN_SYMBOL = 4, ERROR_CODE_BAD_PRICE = 5, ERROR_CODE_BAD_QTY = 6, ERROR_CODE_MIN_NOTIONAL = 7, ERROR_CODE_QTY_STEP_SIZE = 8, ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_ORDER_ID = 9, ERROR_CODE_UNAVAILABLE = 10, ERROR_CODE_UNAUTHENTICATED = 11, ERROR_CODE_PERMISSION_DENIED = 12, ERROR_CODE_NOT_FOUND = 13, ERROR_CODE_UPSTREAM_ERROR = 14, ERROR_CODE_FEE_ASSET_NOT_ALLOWED = 15, ERROR_CODE_PAIR_DISABLED = 16, ERROR_CODE_ORDER_UNKNOWN = 17, ERROR_CODE_INTERNAL_ERROR = 18, ERROR_CODE_SUBACCOUNT_INACTIVE = 19, ERROR_CODE_POLICY_MARKET_DENY = 20, ERROR_CODE_POLICY_MAX_NOTIONAL = 21, ERROR_CODE_POLICY_TRADING_HALTED = 22, ERROR_CODE_POLICY_SPOT_TRADE_DENY = 23, ERROR_CODE_API_KEY_ROOT_SCOPE_ONLY = 24, ERROR_CODE_API_KEY_SUB_SCOPE_ONLY = 25, ERROR_CODE_API_KEY_SUBACCOUNT_MISMATCH = 26, ERROR_CODE_API_KEY_POLICY_REQUIRED = 27, ERROR_CODE_API_KEY_UNKNOWN = 28, ERROR_CODE_API_KEY_MARKET_DENY = 29, ERROR_CODE_PRICE_TICK_SIZE = 30, ERROR_CODE_MIN_QTY = 31, ERROR_CODE_POST_ONLY_LIMIT_ONLY = 32, ERROR_CODE_BATCH_TOO_LARGE = 33, ERROR_CODE_MODIFICATION_REQUIRES_REPLACE = 35, ERROR_CODE_CONFLICT_IDEMPOTENCY_KEY_REUSE = 36, ERROR_CODE_MARKET_PRICE_UNAVAILABLE = 37, ERROR_CODE_PAIR_NOT_LISTED_YET = 50, ERROR_CODE_PAIR_DELISTED = 51, ERROR_CODE_PAIR_CANCEL_ONLY = 52, ERROR_CODE_PAIR_POST_ONLY = 53, ERROR_CODE_PAIR_REDUCE_ONLY = 54, ERROR_CODE_RISK_LIMIT = 55, ERROR_CODE_MARKET_HALTED = 56, ERROR_CODE_ACCOUNT_UNKNOWN = 57, ERROR_CODE_POST_ONLY_CROSS = 58, ERROR_CODE_REDUCE_ONLY_BLOCKED = 59, ERROR_CODE_PRICE_BAND_VIOLATION = 60, ERROR_CODE_MARKET_CAP_VIOLATION = 61, ERROR_CODE_EMPTY_BOOK = 62, ERROR_CODE_FOK_INSUFFICIENT_LIQUIDITY = 63, ERROR_CODE_ORDER_ALREADY_TERMINAL = 64, ERROR_CODE_TRIGGER_PRICE_INVALID = 40, ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED = 41, ERROR_CODE_TRAILING_DISTANCE_INVALID = 42, ERROR_CODE_TRIGGER_NOT_FOUND = 43, ERROR_CODE_TRIGGER_CANCEL_REJECTED = 44, ERROR_CODE_TRIGGER_STATUS_INVALID = 45, ERROR_CODE_TRIGGER_NOT_MODIFIABLE = 46, ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID = 47, ERROR_CODE_MAX_SLIPPAGE_INVALID = 48, ERROR_CODE_STALE_QUOTE = 65, ERROR_CODE_VALIDATION_ERROR = 66, ERROR_CODE_OVERLOADED = 67, ERROR_CODE_MAX_QUOTE_DEBIT_TOO_SMALL = 68,
}
Expand description

ErrorCode enumerates stable machine-readable error codes for the Orders API. These mirror the REST problem+json “code” field for parity between REST and ConnectRPC clients.

Variants§

§

ERROR_CODE_UNSPECIFIED = 0

Error code was not provided.

§

ERROR_CODE_BAD_REQUEST = 1

Request could not be parsed or was structurally invalid.

§

ERROR_CODE_INVALID_ARGUMENT = 2

Request fields failed validation.

§

ERROR_CODE_INSUFFICIENT_FUNDS = 3

Account does not have enough available balance for the order.

§

ERROR_CODE_UNKNOWN_SYMBOL = 4

Requested trading symbol is unknown.

§

ERROR_CODE_BAD_PRICE = 5

Price is invalid for the requested order.

§

ERROR_CODE_BAD_QTY = 6

Quantity is invalid for the requested order.

§

ERROR_CODE_MIN_NOTIONAL = 7

Order notional is below the pair minimum.

§

ERROR_CODE_QTY_STEP_SIZE = 8

Quantity does not align with the pair step size.

§

ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_ORDER_ID = 9

Client order ID is already in use for a different active order.

§

ERROR_CODE_UNAVAILABLE = 10

Service is temporarily unavailable.

§

ERROR_CODE_UNAUTHENTICATED = 11

Caller is not authenticated.

§

ERROR_CODE_PERMISSION_DENIED = 12

Caller is authenticated but not allowed to perform this action.

§

ERROR_CODE_NOT_FOUND = 13

Requested order or resource was not found.

§

ERROR_CODE_UPSTREAM_ERROR = 14

Upstream dependency returned an error.

§

ERROR_CODE_FEE_ASSET_NOT_ALLOWED = 15

Requested fee asset is not allowed for this order.

§

ERROR_CODE_PAIR_DISABLED = 16

Additional domain-specific codes used by the Orders API.

§

ERROR_CODE_ORDER_UNKNOWN = 17

§

ERROR_CODE_INTERNAL_ERROR = 18

§

ERROR_CODE_SUBACCOUNT_INACTIVE = 19

Sub-account is present but not in an active state (disabled, deleted, etc.).

§

ERROR_CODE_POLICY_MARKET_DENY = 20

Sub-account policy prevented trading on this market (e.g. pair mask).

§

ERROR_CODE_POLICY_MAX_NOTIONAL = 21

Sub-account policy max order notional exceeded.

§

ERROR_CODE_POLICY_TRADING_HALTED = 22

Trading has been globally halted for this sub-account.

§

ERROR_CODE_POLICY_SPOT_TRADE_DENY = 23

Sub-account policy does not allow spot trading (action mask).

§

ERROR_CODE_API_KEY_ROOT_SCOPE_ONLY = 24

API key is scoped to the master/root account and cannot trade on sub-accounts.

§

ERROR_CODE_API_KEY_SUB_SCOPE_ONLY = 25

API key is scoped to a specific sub-account and cannot trade on the master/root account.

§

ERROR_CODE_API_KEY_SUBACCOUNT_MISMATCH = 26

API key is scoped to a different sub-account than the one requested.

§

ERROR_CODE_API_KEY_POLICY_REQUIRED = 27

API key must have an attached policy before it can be used for trading.

§

ERROR_CODE_API_KEY_UNKNOWN = 28

API key referenced in the request could not be resolved by the Orders service.

§

ERROR_CODE_API_KEY_MARKET_DENY = 29

API key policy does not allow trading this market, even though the sub-account policy does.

§

ERROR_CODE_PRICE_TICK_SIZE = 30

Price must align with the pair tick size (LIMIT orders).

§

ERROR_CODE_MIN_QTY = 31

Quantity is below the pair minimum quantity (base units).

§

ERROR_CODE_POST_ONLY_LIMIT_ONLY = 32

Post-only is only valid for LIMIT orders.

§

ERROR_CODE_BATCH_TOO_LARGE = 33

Batch size exceeds the maximum allowed.

§

ERROR_CODE_MODIFICATION_REQUIRES_REPLACE = 35

Modify request in AMEND_ONLY mode requires replace semantics.

§

ERROR_CODE_CONFLICT_IDEMPOTENCY_KEY_REUSE = 36

Idempotency key was reused with a different payload.

§

ERROR_CODE_MARKET_PRICE_UNAVAILABLE = 37

MARKET BUY cannot be reserved because no reference/top-of-book price is available.

§

ERROR_CODE_PAIR_NOT_LISTED_YET = 50

Pair exists but is not listed yet.

§

ERROR_CODE_PAIR_DELISTED = 51

Pair was delisted and is no longer tradable.

§

ERROR_CODE_PAIR_CANCEL_ONLY = 52

Pair is in cancel-only mode.

§

ERROR_CODE_PAIR_POST_ONLY = 53

Pair is in post-only mode and requires post_only=true.

§

ERROR_CODE_PAIR_REDUCE_ONLY = 54

Pair is in reduce-only mode and does not accept new spot orders.

§

ERROR_CODE_RISK_LIMIT = 55

Account-level risk limits were exceeded.

§

ERROR_CODE_MARKET_HALTED = 56

Market is halted.

§

ERROR_CODE_ACCOUNT_UNKNOWN = 57

Referenced account could not be resolved by the trading service.

§

ERROR_CODE_POST_ONLY_CROSS = 58

Post-only order would cross the book.

§

ERROR_CODE_REDUCE_ONLY_BLOCKED = 59

Reduce-only policy blocked the order.

§

ERROR_CODE_PRICE_BAND_VIOLATION = 60

Price band guard rejected the order.

§

ERROR_CODE_MARKET_CAP_VIOLATION = 61

Market-cap guard rejected the order.

§

ERROR_CODE_EMPTY_BOOK = 62

Market order could not execute due to empty book.

§

ERROR_CODE_FOK_INSUFFICIENT_LIQUIDITY = 63

FOK order rejected due to insufficient immediate liquidity.

§

ERROR_CODE_ORDER_ALREADY_TERMINAL = 64

Client order ID points to an order that already reached terminal state.

§

ERROR_CODE_TRIGGER_PRICE_INVALID = 40

Trigger-specific error codes (40-49 range). Trigger price is invalid (e.g., TP below current price for long).

§

ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED = 41

Trigger price source not supported (e.g., INDEX_PRICE before it’s available).

§

ERROR_CODE_TRAILING_DISTANCE_INVALID = 42

Trailing stop distance must be positive.

§

ERROR_CODE_TRIGGER_NOT_FOUND = 43

Trigger not found (for cancel/get operations).

§

ERROR_CODE_TRIGGER_CANCEL_REJECTED = 44

Trigger cannot be canceled in current state.

§

ERROR_CODE_TRIGGER_STATUS_INVALID = 45

Trigger status does not allow requested lifecycle operation.

§

ERROR_CODE_TRIGGER_NOT_MODIFIABLE = 46

Trigger type/state does not support requested lifecycle operation.

§

ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID = 47

Duplicate client trigger ID was reused with a different trigger payload.

§

ERROR_CODE_MAX_SLIPPAGE_INVALID = 48

Trailing-stop max slippage (ticks or bps) is invalid.

§

ERROR_CODE_STALE_QUOTE = 65

Client reference price is stale compared to server-side BBO/drift policy.

§

ERROR_CODE_VALIDATION_ERROR = 66

Request failed structural or cross-field validation.

§

ERROR_CODE_OVERLOADED = 67

This edge is at its bounded concurrent BatchReplace admission capacity.

§

ERROR_CODE_MAX_QUOTE_DEBIT_TOO_SMALL = 68

The all-in quote budget cannot resolve one valid step-aligned base quantity.

Implementations§

Source§

impl ErrorCode

Source

pub const Unspecified: Self = Self::ERROR_CODE_UNSPECIFIED

Idiomatic alias for Self::ERROR_CODE_UNSPECIFIED; Debug prints the variant name.

Source

pub const BadRequest: Self = Self::ERROR_CODE_BAD_REQUEST

Idiomatic alias for Self::ERROR_CODE_BAD_REQUEST; Debug prints the variant name.

Source

pub const InvalidArgument: Self = Self::ERROR_CODE_INVALID_ARGUMENT

Idiomatic alias for Self::ERROR_CODE_INVALID_ARGUMENT; Debug prints the variant name.

Source

pub const InsufficientFunds: Self = Self::ERROR_CODE_INSUFFICIENT_FUNDS

Idiomatic alias for Self::ERROR_CODE_INSUFFICIENT_FUNDS; Debug prints the variant name.

Source

pub const UnknownSymbol: Self = Self::ERROR_CODE_UNKNOWN_SYMBOL

Idiomatic alias for Self::ERROR_CODE_UNKNOWN_SYMBOL; Debug prints the variant name.

Source

pub const BadPrice: Self = Self::ERROR_CODE_BAD_PRICE

Idiomatic alias for Self::ERROR_CODE_BAD_PRICE; Debug prints the variant name.

Source

pub const BadQty: Self = Self::ERROR_CODE_BAD_QTY

Idiomatic alias for Self::ERROR_CODE_BAD_QTY; Debug prints the variant name.

Source

pub const MinNotional: Self = Self::ERROR_CODE_MIN_NOTIONAL

Idiomatic alias for Self::ERROR_CODE_MIN_NOTIONAL; Debug prints the variant name.

Source

pub const QtyStepSize: Self = Self::ERROR_CODE_QTY_STEP_SIZE

Idiomatic alias for Self::ERROR_CODE_QTY_STEP_SIZE; Debug prints the variant name.

Source

pub const ConflictDuplicateClientOrderId: Self = Self::ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_ORDER_ID

Idiomatic alias for Self::ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_ORDER_ID; Debug prints the variant name.

Source

pub const Unavailable: Self = Self::ERROR_CODE_UNAVAILABLE

Idiomatic alias for Self::ERROR_CODE_UNAVAILABLE; Debug prints the variant name.

Source

pub const Unauthenticated: Self = Self::ERROR_CODE_UNAUTHENTICATED

Idiomatic alias for Self::ERROR_CODE_UNAUTHENTICATED; Debug prints the variant name.

Source

pub const PermissionDenied: Self = Self::ERROR_CODE_PERMISSION_DENIED

Idiomatic alias for Self::ERROR_CODE_PERMISSION_DENIED; Debug prints the variant name.

Source

pub const NotFound: Self = Self::ERROR_CODE_NOT_FOUND

Idiomatic alias for Self::ERROR_CODE_NOT_FOUND; Debug prints the variant name.

Source

pub const UpstreamError: Self = Self::ERROR_CODE_UPSTREAM_ERROR

Idiomatic alias for Self::ERROR_CODE_UPSTREAM_ERROR; Debug prints the variant name.

Source

pub const FeeAssetNotAllowed: Self = Self::ERROR_CODE_FEE_ASSET_NOT_ALLOWED

Idiomatic alias for Self::ERROR_CODE_FEE_ASSET_NOT_ALLOWED; Debug prints the variant name.

Source

pub const PairDisabled: Self = Self::ERROR_CODE_PAIR_DISABLED

Idiomatic alias for Self::ERROR_CODE_PAIR_DISABLED; Debug prints the variant name.

Source

pub const OrderUnknown: Self = Self::ERROR_CODE_ORDER_UNKNOWN

Idiomatic alias for Self::ERROR_CODE_ORDER_UNKNOWN; Debug prints the variant name.

Source

pub const InternalError: Self = Self::ERROR_CODE_INTERNAL_ERROR

Idiomatic alias for Self::ERROR_CODE_INTERNAL_ERROR; Debug prints the variant name.

Source

pub const SubaccountInactive: Self = Self::ERROR_CODE_SUBACCOUNT_INACTIVE

Idiomatic alias for Self::ERROR_CODE_SUBACCOUNT_INACTIVE; Debug prints the variant name.

Source

pub const PolicyMarketDeny: Self = Self::ERROR_CODE_POLICY_MARKET_DENY

Idiomatic alias for Self::ERROR_CODE_POLICY_MARKET_DENY; Debug prints the variant name.

Source

pub const PolicyMaxNotional: Self = Self::ERROR_CODE_POLICY_MAX_NOTIONAL

Idiomatic alias for Self::ERROR_CODE_POLICY_MAX_NOTIONAL; Debug prints the variant name.

Source

pub const PolicyTradingHalted: Self = Self::ERROR_CODE_POLICY_TRADING_HALTED

Idiomatic alias for Self::ERROR_CODE_POLICY_TRADING_HALTED; Debug prints the variant name.

Source

pub const PolicySpotTradeDeny: Self = Self::ERROR_CODE_POLICY_SPOT_TRADE_DENY

Idiomatic alias for Self::ERROR_CODE_POLICY_SPOT_TRADE_DENY; Debug prints the variant name.

Source

pub const ApiKeyRootScopeOnly: Self = Self::ERROR_CODE_API_KEY_ROOT_SCOPE_ONLY

Idiomatic alias for Self::ERROR_CODE_API_KEY_ROOT_SCOPE_ONLY; Debug prints the variant name.

Source

pub const ApiKeySubScopeOnly: Self = Self::ERROR_CODE_API_KEY_SUB_SCOPE_ONLY

Idiomatic alias for Self::ERROR_CODE_API_KEY_SUB_SCOPE_ONLY; Debug prints the variant name.

Source

pub const ApiKeySubaccountMismatch: Self = Self::ERROR_CODE_API_KEY_SUBACCOUNT_MISMATCH

Idiomatic alias for Self::ERROR_CODE_API_KEY_SUBACCOUNT_MISMATCH; Debug prints the variant name.

Source

pub const ApiKeyPolicyRequired: Self = Self::ERROR_CODE_API_KEY_POLICY_REQUIRED

Idiomatic alias for Self::ERROR_CODE_API_KEY_POLICY_REQUIRED; Debug prints the variant name.

Source

pub const ApiKeyUnknown: Self = Self::ERROR_CODE_API_KEY_UNKNOWN

Idiomatic alias for Self::ERROR_CODE_API_KEY_UNKNOWN; Debug prints the variant name.

Source

pub const ApiKeyMarketDeny: Self = Self::ERROR_CODE_API_KEY_MARKET_DENY

Idiomatic alias for Self::ERROR_CODE_API_KEY_MARKET_DENY; Debug prints the variant name.

Source

pub const PriceTickSize: Self = Self::ERROR_CODE_PRICE_TICK_SIZE

Idiomatic alias for Self::ERROR_CODE_PRICE_TICK_SIZE; Debug prints the variant name.

Source

pub const MinQty: Self = Self::ERROR_CODE_MIN_QTY

Idiomatic alias for Self::ERROR_CODE_MIN_QTY; Debug prints the variant name.

Source

pub const PostOnlyLimitOnly: Self = Self::ERROR_CODE_POST_ONLY_LIMIT_ONLY

Idiomatic alias for Self::ERROR_CODE_POST_ONLY_LIMIT_ONLY; Debug prints the variant name.

Source

pub const BatchTooLarge: Self = Self::ERROR_CODE_BATCH_TOO_LARGE

Idiomatic alias for Self::ERROR_CODE_BATCH_TOO_LARGE; Debug prints the variant name.

Source

pub const ModificationRequiresReplace: Self = Self::ERROR_CODE_MODIFICATION_REQUIRES_REPLACE

Idiomatic alias for Self::ERROR_CODE_MODIFICATION_REQUIRES_REPLACE; Debug prints the variant name.

Source

pub const ConflictIdempotencyKeyReuse: Self = Self::ERROR_CODE_CONFLICT_IDEMPOTENCY_KEY_REUSE

Idiomatic alias for Self::ERROR_CODE_CONFLICT_IDEMPOTENCY_KEY_REUSE; Debug prints the variant name.

Source

pub const MarketPriceUnavailable: Self = Self::ERROR_CODE_MARKET_PRICE_UNAVAILABLE

Idiomatic alias for Self::ERROR_CODE_MARKET_PRICE_UNAVAILABLE; Debug prints the variant name.

Source

pub const PairNotListedYet: Self = Self::ERROR_CODE_PAIR_NOT_LISTED_YET

Idiomatic alias for Self::ERROR_CODE_PAIR_NOT_LISTED_YET; Debug prints the variant name.

Source

pub const PairDelisted: Self = Self::ERROR_CODE_PAIR_DELISTED

Idiomatic alias for Self::ERROR_CODE_PAIR_DELISTED; Debug prints the variant name.

Source

pub const PairCancelOnly: Self = Self::ERROR_CODE_PAIR_CANCEL_ONLY

Idiomatic alias for Self::ERROR_CODE_PAIR_CANCEL_ONLY; Debug prints the variant name.

Source

pub const PairPostOnly: Self = Self::ERROR_CODE_PAIR_POST_ONLY

Idiomatic alias for Self::ERROR_CODE_PAIR_POST_ONLY; Debug prints the variant name.

Source

pub const PairReduceOnly: Self = Self::ERROR_CODE_PAIR_REDUCE_ONLY

Idiomatic alias for Self::ERROR_CODE_PAIR_REDUCE_ONLY; Debug prints the variant name.

Source

pub const RiskLimit: Self = Self::ERROR_CODE_RISK_LIMIT

Idiomatic alias for Self::ERROR_CODE_RISK_LIMIT; Debug prints the variant name.

Source

pub const MarketHalted: Self = Self::ERROR_CODE_MARKET_HALTED

Idiomatic alias for Self::ERROR_CODE_MARKET_HALTED; Debug prints the variant name.

Source

pub const AccountUnknown: Self = Self::ERROR_CODE_ACCOUNT_UNKNOWN

Idiomatic alias for Self::ERROR_CODE_ACCOUNT_UNKNOWN; Debug prints the variant name.

Source

pub const PostOnlyCross: Self = Self::ERROR_CODE_POST_ONLY_CROSS

Idiomatic alias for Self::ERROR_CODE_POST_ONLY_CROSS; Debug prints the variant name.

Source

pub const ReduceOnlyBlocked: Self = Self::ERROR_CODE_REDUCE_ONLY_BLOCKED

Idiomatic alias for Self::ERROR_CODE_REDUCE_ONLY_BLOCKED; Debug prints the variant name.

Source

pub const PriceBandViolation: Self = Self::ERROR_CODE_PRICE_BAND_VIOLATION

Idiomatic alias for Self::ERROR_CODE_PRICE_BAND_VIOLATION; Debug prints the variant name.

Source

pub const MarketCapViolation: Self = Self::ERROR_CODE_MARKET_CAP_VIOLATION

Idiomatic alias for Self::ERROR_CODE_MARKET_CAP_VIOLATION; Debug prints the variant name.

Source

pub const EmptyBook: Self = Self::ERROR_CODE_EMPTY_BOOK

Idiomatic alias for Self::ERROR_CODE_EMPTY_BOOK; Debug prints the variant name.

Source

pub const FokInsufficientLiquidity: Self = Self::ERROR_CODE_FOK_INSUFFICIENT_LIQUIDITY

Idiomatic alias for Self::ERROR_CODE_FOK_INSUFFICIENT_LIQUIDITY; Debug prints the variant name.

Source

pub const OrderAlreadyTerminal: Self = Self::ERROR_CODE_ORDER_ALREADY_TERMINAL

Idiomatic alias for Self::ERROR_CODE_ORDER_ALREADY_TERMINAL; Debug prints the variant name.

Source

pub const TriggerPriceInvalid: Self = Self::ERROR_CODE_TRIGGER_PRICE_INVALID

Idiomatic alias for Self::ERROR_CODE_TRIGGER_PRICE_INVALID; Debug prints the variant name.

Source

pub const TriggerPriceSourceUnsupported: Self = Self::ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED

Idiomatic alias for Self::ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED; Debug prints the variant name.

Source

pub const TrailingDistanceInvalid: Self = Self::ERROR_CODE_TRAILING_DISTANCE_INVALID

Idiomatic alias for Self::ERROR_CODE_TRAILING_DISTANCE_INVALID; Debug prints the variant name.

Source

pub const TriggerNotFound: Self = Self::ERROR_CODE_TRIGGER_NOT_FOUND

Idiomatic alias for Self::ERROR_CODE_TRIGGER_NOT_FOUND; Debug prints the variant name.

Source

pub const TriggerCancelRejected: Self = Self::ERROR_CODE_TRIGGER_CANCEL_REJECTED

Idiomatic alias for Self::ERROR_CODE_TRIGGER_CANCEL_REJECTED; Debug prints the variant name.

Source

pub const TriggerStatusInvalid: Self = Self::ERROR_CODE_TRIGGER_STATUS_INVALID

Idiomatic alias for Self::ERROR_CODE_TRIGGER_STATUS_INVALID; Debug prints the variant name.

Source

pub const TriggerNotModifiable: Self = Self::ERROR_CODE_TRIGGER_NOT_MODIFIABLE

Idiomatic alias for Self::ERROR_CODE_TRIGGER_NOT_MODIFIABLE; Debug prints the variant name.

Source

pub const ConflictDuplicateClientTriggerId: Self = Self::ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID

Idiomatic alias for Self::ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID; Debug prints the variant name.

Source

pub const MaxSlippageInvalid: Self = Self::ERROR_CODE_MAX_SLIPPAGE_INVALID

Idiomatic alias for Self::ERROR_CODE_MAX_SLIPPAGE_INVALID; Debug prints the variant name.

Source

pub const StaleQuote: Self = Self::ERROR_CODE_STALE_QUOTE

Idiomatic alias for Self::ERROR_CODE_STALE_QUOTE; Debug prints the variant name.

Source

pub const ValidationError: Self = Self::ERROR_CODE_VALIDATION_ERROR

Idiomatic alias for Self::ERROR_CODE_VALIDATION_ERROR; Debug prints the variant name.

Source

pub const Overloaded: Self = Self::ERROR_CODE_OVERLOADED

Idiomatic alias for Self::ERROR_CODE_OVERLOADED; Debug prints the variant name.

Source

pub const MaxQuoteDebitTooSmall: Self = Self::ERROR_CODE_MAX_QUOTE_DEBIT_TOO_SMALL

Idiomatic alias for Self::ERROR_CODE_MAX_QUOTE_DEBIT_TOO_SMALL; Debug prints the variant name.

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ErrorCode

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ErrorCode

Source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Enumeration for ErrorCode

Source§

fn from_i32(value: i32) -> Option<Self>

Convert from an i32 wire value to the enum. Read more
Source§

fn to_i32(&self) -> i32

Convert the enum to its i32 wire value.
Source§

fn proto_name(&self) -> &'static str

The name of this enum variant as it appears in the .proto file.
Source§

fn from_proto_name(name: &str) -> Option<Self>

Look up a variant by its protobuf name string. Read more
Source§

fn values() -> &'static [Self]

All known variants of this enum, in proto declaration order. Read more
Source§

impl Eq for ErrorCode

Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &ErrorCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ProtoElemJson for ErrorCode

Source§

fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>

Serialize this value with proto3 JSON semantics.
Source§

fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>

Deserialize a value with proto3 JSON semantics.
Source§

impl Serialize for ErrorCode

Source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> JsonDeserialize for T

Source§

impl<T> JsonSerialize for T
where T: Serialize,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more