pub enum TikTokApiError {
AccessTokenInvalid(String),
InternalError(String),
InvalidFileUpload(String),
InvalidParams(String),
RateLimitExceeded(String),
ScopeNotAuthorized(String),
ScopePermissionMissed(String),
RequestFailed(String),
ResponseReadFailed(String),
ParseFailed(String),
ApiError(String, String, String),
Unknown(String, String, String),
}Variants§
AccessTokenInvalid(String)
InternalError(String)
InvalidFileUpload(String)
InvalidParams(String)
RateLimitExceeded(String)
ScopeNotAuthorized(String)
ScopePermissionMissed(String)
RequestFailed(String)
ResponseReadFailed(String)
ParseFailed(String)
ApiError(String, String, String)
Unknown(String, String, String)
Trait Implementations§
Source§impl Debug for TikTokApiError
impl Debug for TikTokApiError
Source§impl Display for TikTokApiError
impl Display for TikTokApiError
Source§impl Error for TikTokApiError
impl Error for TikTokApiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ErrorResponse> for TikTokApiError
impl From<ErrorResponse> for TikTokApiError
Source§fn from(error: ErrorResponse) -> Self
fn from(error: ErrorResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TikTokApiError
impl RefUnwindSafe for TikTokApiError
impl Send for TikTokApiError
impl Sync for TikTokApiError
impl Unpin for TikTokApiError
impl UnsafeUnpin for TikTokApiError
impl UnwindSafe for TikTokApiError
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