pub enum PostError {
Io(Error),
Json(Error),
FmWrite(FmWriteError),
Api(String),
Config(String),
}Expand description
Errors that can occur during LinkedIn post publishing.
Variants§
Io(Error)
I/O error reading, writing, or deleting files.
Json(Error)
JSON deserialization error loading a .linkedin file.
FmWrite(FmWriteError)
Frontmatter write-back error.
Api(String)
LinkedIn API error.
Config(String)
Missing required configuration value.
Trait Implementations§
Source§impl Error for PostError
impl Error for PostError
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 !RefUnwindSafe for PostError
impl !UnwindSafe for PostError
impl Forget for PostError
impl Freeze for PostError
impl Move for PostError
impl Send for PostError
impl Sync for PostError
impl Unpin for PostError
impl UnsafeUnpin for PostError
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