pub enum UpdatePostError {
PostNotFound,
Forbidden,
FailedToParseBody,
FailedToRenderBody,
GetPostAuthor(RawGetShortUserError),
Other(WeakError),
}Variants§
PostNotFound
Forbidden
FailedToParseBody
FailedToRenderBody
GetPostAuthor(RawGetShortUserError)
Other(WeakError)
Implementations§
Trait Implementations§
Source§impl Debug for UpdatePostError
impl Debug for UpdatePostError
Source§impl Display for UpdatePostError
impl Display for UpdatePostError
Source§impl Error for UpdatePostError
impl Error for UpdatePostError
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()
Auto Trait Implementations§
impl Freeze for UpdatePostError
impl RefUnwindSafe for UpdatePostError
impl Send for UpdatePostError
impl Sync for UpdatePostError
impl Unpin for UpdatePostError
impl UnwindSafe for UpdatePostError
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