pub enum FragmentLoweringError {
CanisterHasNoStores(String),
CanisterNotFound(String),
Contract(SchemaContractError),
GraphNotSealed,
InvalidDefault(String),
InvalidReference(String),
UnsupportedCardinality(String),
}Expand description
Failure while projecting one validated host graph into public fragments.
Variants§
CanisterHasNoStores(String)
A selected canister has no registered stores.
CanisterNotFound(String)
The selected canister path is not registered.
Contract(SchemaContractError)
The public bounded proposal contract rejected the projection.
GraphNotSealed
Fragment projection requires the immutable post-validation graph.
InvalidDefault(String)
A declared default cannot be represented by the public proposal atom.
InvalidReference(String)
One graph reference no longer resolves to the expected node kind.
UnsupportedCardinality(String)
One authored value cardinality has no accepted proposal representation.
Trait Implementations§
Source§impl Debug for FragmentLoweringError
impl Debug for FragmentLoweringError
Source§impl Display for FragmentLoweringError
impl Display for FragmentLoweringError
Source§impl Error for FragmentLoweringError
impl Error for FragmentLoweringError
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<SchemaContractError> for FragmentLoweringError
impl From<SchemaContractError> for FragmentLoweringError
Source§fn from(source: SchemaContractError) -> Self
fn from(source: SchemaContractError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FragmentLoweringError
impl RefUnwindSafe for FragmentLoweringError
impl Send for FragmentLoweringError
impl Sync for FragmentLoweringError
impl Unpin for FragmentLoweringError
impl UnsafeUnpin for FragmentLoweringError
impl UnwindSafe for FragmentLoweringError
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