#[non_exhaustive]pub enum ErrorKind {
ContentTypeNotFound,
ReadContentTypeFailed,
ContentTypeMismatch,
BotTokenNotFound,
ReadBotTokenFailed,
BotTokenMismatch,
BotEventNotFound,
ReadBotEventFailed,
BotEventMismatch,
ReadBodyFailed,
ParseBodyFailed,
Handler,
}
Expand description
発生したエラーの種類です。 (non-exhaustive)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ContentTypeNotFound
Content-Typeがヘッダーに含まれていない
ReadContentTypeFailed
Content-Typeの値を読み取れなかった
ContentTypeMismatch
Content-Typeの値がapplication/jsonで始まっていない
BotTokenNotFound
X-TRAQ-BOT-TOKENがヘッダーに含まれていない
ReadBotTokenFailed
X-TRAQ-BOT-TOKENの値を読み取れなかった
BotTokenMismatch
X-TRAQ-BOT-TOKENの値がverification_tokenと等しくない
BotEventNotFound
X-TRAQ-BOT-EVENTがヘッダーに含まれていない
ReadBotEventFailed
X-TRAQ-BOT-EVENTの値を読み取れなかった
BotEventMismatch
X-TRAQ-BOT-EVENTの値がイベント名のいずれでもない
ReadBodyFailed
リクエストボディの値を読み取れなかった
ParseBodyFailed
リクエストボディの値をパースできなかった
Handler
イベントハンドラ実行中のエラー
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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