pub struct DetailedStatusTracker { /* private fields */ }
Expand description
A DetailedStatusTracker
aggregates all log conditions observed during a
validation pass.
When add_error()
is called, it will not raise an error.
Implementations§
Source§impl DetailedStatusTracker
impl DetailedStatusTracker
Sourcepub fn take_errors(&mut self) -> Vec<LogItem>
pub fn take_errors(&mut self) -> Vec<LogItem>
Return the LogItem
s that have error conditions (err_val
is
populated).
Removes matching items from the list of log items.
Trait Implementations§
Source§impl Debug for DetailedStatusTracker
impl Debug for DetailedStatusTracker
Source§impl Default for DetailedStatusTracker
impl Default for DetailedStatusTracker
Source§fn default() -> DetailedStatusTracker
fn default() -> DetailedStatusTracker
Returns the “default value” for a type. Read more
Source§impl StatusTracker for DetailedStatusTracker
impl StatusTracker for DetailedStatusTracker
Source§fn logged_items(&self) -> &[LogItem]
fn logged_items(&self) -> &[LogItem]
Return the current list of validation log items.
Source§fn add_non_error(&mut self, log_item: LogItem)
fn add_non_error(&mut self, log_item: LogItem)
Source§fn push_ingredient_uri<S: Into<String>>(&mut self, uri: S)
fn push_ingredient_uri<S: Into<String>>(&mut self, uri: S)
Keeps track of the current ingredient URI, if any. Read more
Source§fn pop_ingredient_uri(&mut self) -> Option<String>
fn pop_ingredient_uri(&mut self) -> Option<String>
Removes the current ingredient URI, if any.
Source§fn append(&mut self, other: &impl StatusTracker)
fn append(&mut self, other: &impl StatusTracker)
Appends the contents of another
StatusTracker
to this list of
validation log items.Source§fn filter_errors(&mut self) -> impl Iterator<Item = &LogItem>
fn filter_errors(&mut self) -> impl Iterator<Item = &LogItem>
Source§fn has_status(&self, val: &str) -> bool
fn has_status(&self, val: &str) -> bool
Return
true
if the validation log contains a specific C2PA status
code.Auto Trait Implementations§
impl Freeze for DetailedStatusTracker
impl RefUnwindSafe for DetailedStatusTracker
impl Send for DetailedStatusTracker
impl Sync for DetailedStatusTracker
impl Unpin for DetailedStatusTracker
impl UnwindSafe for DetailedStatusTracker
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