pub enum PlanIoError {
Io(PathBuf, Error),
MalformedDirective(String),
PlanIdMismatch {
sql: String,
intent: String,
manifest: String,
},
Toml(Error),
TomlSer(Error),
Json(Error),
InvalidPlanHash(InvalidPlanHash),
}Expand description
Errors raised when reading or writing a plan directory
(plan.sql + intent.toml + manifest.toml).
Variants§
Io(PathBuf, Error)
I/O error on a specific path.
MalformedDirective(String)
A -- @pgevolve directive line failed to parse.
PlanIdMismatch
The plan id encoded in plan.sql, intent.toml, and manifest.toml
did not agree.
Fields
Toml(Error)
TOML parse failure.
TomlSer(Error)
TOML serialize failure (when writing).
Json(Error)
JSON parse/serialize failure (used by the manifest’s embedded
target_snapshot_json).
InvalidPlanHash(InvalidPlanHash)
manifest.toml’s plan_hash field is not a valid 64-char hex string.
Implementations§
Source§impl PlanIoError
impl PlanIoError
Trait Implementations§
Source§impl Debug for PlanIoError
impl Debug for PlanIoError
Source§impl Display for PlanIoError
impl Display for PlanIoError
Source§impl Error for PlanIoError
impl Error for PlanIoError
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<Error> for PlanIoError
impl From<Error> for PlanIoError
Source§impl From<Error> for PlanIoError
impl From<Error> for PlanIoError
Source§impl From<Error> for PlanIoError
impl From<Error> for PlanIoError
Source§impl From<Error> for PlanIoError
impl From<Error> for PlanIoError
Source§impl From<InvalidPlanHash> for PlanIoError
impl From<InvalidPlanHash> for PlanIoError
Source§fn from(source: InvalidPlanHash) -> Self
fn from(source: InvalidPlanHash) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlanIoError
impl !RefUnwindSafe for PlanIoError
impl Send for PlanIoError
impl Sync for PlanIoError
impl Unpin for PlanIoError
impl UnsafeUnpin for PlanIoError
impl !UnwindSafe for PlanIoError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more