pub struct BuildErrors(/* private fields */);Expand description
A collection of BuildErrors accumulated during workflow construction.
Builder build() methods return this type so that all validation errors
can be reported at once rather than failing on the first one.
Implementations§
Source§impl BuildErrors
impl BuildErrors
Sourcepub fn push(&mut self, error: BuildError)
pub fn push(&mut self, error: BuildError)
Append a single error.
Sourcepub fn iter(&self) -> Iter<'_, BuildError>
pub fn iter(&self) -> Iter<'_, BuildError>
Iterate over the individual errors.
Sourcepub fn into_vec(self) -> Vec<BuildError>
pub fn into_vec(self) -> Vec<BuildError>
Consume the wrapper and return the inner vector.
Trait Implementations§
Source§impl Clone for BuildErrors
impl Clone for BuildErrors
Source§fn clone(&self) -> BuildErrors
fn clone(&self) -> BuildErrors
Returns a duplicate 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 BuildErrors
impl Debug for BuildErrors
Source§impl Default for BuildErrors
impl Default for BuildErrors
Source§impl Display for BuildErrors
impl Display for BuildErrors
Source§impl Error for BuildErrors
impl Error for BuildErrors
1.30.0 · 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<BuildError> for BuildErrors
impl From<BuildError> for BuildErrors
Source§fn from(error: BuildError) -> Self
fn from(error: BuildError) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a BuildErrors
impl<'a> IntoIterator for &'a BuildErrors
Source§impl IntoIterator for BuildErrors
impl IntoIterator for BuildErrors
Auto Trait Implementations§
impl Freeze for BuildErrors
impl RefUnwindSafe for BuildErrors
impl Send for BuildErrors
impl Sync for BuildErrors
impl Unpin for BuildErrors
impl UnsafeUnpin for BuildErrors
impl UnwindSafe for BuildErrors
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