#[non_exhaustive]pub enum ElefantToolsError {
Show 28 variants
PostgresError(Error),
PostgresErrorWithQuery {
query: String,
source: Error,
},
InvalidNumberOfResults {
actual: usize,
expected: usize,
},
UnknownConstraintType(String),
UnknownForeignKeyAction(String),
UnknownFunctionKind(String),
UnknownVolatility(String),
UnknownParallel(String),
UnknownAggregateFinalFunctionModify(String),
UnknownTriggerLevel(String),
UnknownTriggerTiming(String),
UnknownTriggerEvent(String),
InvalidTableType(String),
InvalidKeywordType(String),
InvalidTablePartitioningStrategy(String),
PartitionedTableWithoutParent(String),
PartitionedTableHasMultipleParent {
table: String,
parents: Vec<String>,
},
PartitionedTableWithoutExpression(String),
PartitionedTableWithoutPartitionColumns(String),
PartitionedTableWithBothPartitionColumnsAndExpression(String),
UnsupportedPostgresVersion(i32),
InvalidPostgresVersionResponse,
HypertableDimensionWithoutInterval {
table_name: String,
dimension_number: i64,
},
IoError(Error),
DataFormatsNotCompatible {
supported_by_target: Vec<DataFormat>,
supported_by_source: Vec<DataFormat>,
required_format: Option<DataFormat>,
},
JoinError(JoinError),
AggregateFunctionMissingTransitionType(String),
AggregateFunctionMissingTransitionFunction(String),
}Expand description
All the errors that can occur in the elefant-tools library
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.
PostgresError(Error)
PostgresErrorWithQuery
InvalidNumberOfResults
UnknownConstraintType(String)
UnknownForeignKeyAction(String)
UnknownFunctionKind(String)
UnknownVolatility(String)
UnknownParallel(String)
UnknownAggregateFinalFunctionModify(String)
UnknownTriggerLevel(String)
UnknownTriggerTiming(String)
UnknownTriggerEvent(String)
InvalidTableType(String)
InvalidKeywordType(String)
InvalidTablePartitioningStrategy(String)
PartitionedTableWithoutParent(String)
PartitionedTableHasMultipleParent
PartitionedTableWithoutExpression(String)
PartitionedTableWithoutPartitionColumns(String)
PartitionedTableWithBothPartitionColumnsAndExpression(String)
UnsupportedPostgresVersion(i32)
InvalidPostgresVersionResponse
HypertableDimensionWithoutInterval
IoError(Error)
DataFormatsNotCompatible
Fields
§
supported_by_target: Vec<DataFormat>§
supported_by_source: Vec<DataFormat>§
required_format: Option<DataFormat>JoinError(JoinError)
AggregateFunctionMissingTransitionType(String)
AggregateFunctionMissingTransitionFunction(String)
Trait Implementations§
Source§impl Debug for ElefantToolsError
impl Debug for ElefantToolsError
Source§impl Display for ElefantToolsError
impl Display for ElefantToolsError
Source§impl Error for ElefantToolsError
impl Error for ElefantToolsError
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 ElefantToolsError
impl From<Error> for ElefantToolsError
Source§impl From<Error> for ElefantToolsError
impl From<Error> for ElefantToolsError
Auto Trait Implementations§
impl Freeze for ElefantToolsError
impl !RefUnwindSafe for ElefantToolsError
impl Send for ElefantToolsError
impl Sync for ElefantToolsError
impl Unpin for ElefantToolsError
impl !UnwindSafe for ElefantToolsError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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