Enum rgbstd::interface::BuilderError
source · pub enum BuilderError {
InterfaceMismatch,
SchemaMismatch,
GlobalNotFound(FieldName),
AssignmentNotFound(FieldName),
TransitionNotFound(TypeName),
InvalidStateField(FieldName),
InvalidState(AssignmentType),
NoOperationSubtype,
NoDefaultAssignment,
StrictEncode(SerializeError),
Reify(Error),
Confinement(Error),
}
Variants§
InterfaceMismatch
interface implementation references different interface that the one provided to the forge.
SchemaMismatch
interface implementation references different schema that the one provided to the forge.
GlobalNotFound(FieldName)
Global state {0}
is not known to the schema.
AssignmentNotFound(FieldName)
Assignment {0}
is not known to the schema.
TransitionNotFound(TypeName)
transition {0}
is not known to the schema.
InvalidStateField(FieldName)
state {0}
provided to the builder has invalid name
InvalidState(AssignmentType)
state {0}
provided to the builder has invalid name
NoOperationSubtype
interface doesn’t specifies default operation name, thus an explicit
operation type must be provided with set_operation_type
method.
NoDefaultAssignment
interface doesn’t have a default assignment type.
StrictEncode(SerializeError)
Reify(Error)
Confinement(Error)
Trait Implementations§
source§impl Clone for BuilderError
impl Clone for BuilderError
source§fn clone(&self) -> BuilderError
fn clone(&self) -> BuilderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BuilderError
impl Debug for BuilderError
source§impl Display for BuilderError
impl Display for BuilderError
source§impl Error for BuilderError
impl Error for BuilderError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BuilderError> for String
impl From<BuilderError> for String
source§fn from(err: BuilderError) -> Self
fn from(err: BuilderError) -> Self
Converts to this type from the input type.
source§impl From<Error> for BuilderError
impl From<Error> for BuilderError
source§impl From<Error> for BuilderError
impl From<Error> for BuilderError
source§impl From<SerializeError> for BuilderError
impl From<SerializeError> for BuilderError
source§fn from(v: SerializeError) -> Self
fn from(v: SerializeError) -> Self
Converts to this type from the input type.
source§impl PartialEq<BuilderError> for BuilderError
impl PartialEq<BuilderError> for BuilderError
source§fn eq(&self, other: &BuilderError) -> bool
fn eq(&self, other: &BuilderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BuilderError
impl StructuralEq for BuilderError
impl StructuralPartialEq for BuilderError
Auto Trait Implementations§
impl !RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl !UnwindSafe for BuilderError
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.