pub struct DefaultProcessor { /* private fields */ }
Expand description
DefaultProcessor is responsible for applying anonymization rules to DICOM elements
This processor uses a provided configuration to determine which anonymization actions should be applied to each DICOM element. It can process both individual elements and recursively handle sequence elements.
Implementations§
Trait Implementations§
Source§impl Clone for DefaultProcessor
impl Clone for DefaultProcessor
Source§fn clone(&self) -> DefaultProcessor
fn clone(&self) -> DefaultProcessor
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 DefaultProcessor
impl Debug for DefaultProcessor
Source§impl PartialEq for DefaultProcessor
impl PartialEq for DefaultProcessor
Source§impl Processor for DefaultProcessor
impl Processor for DefaultProcessor
Source§fn process_element<'a>(
&'a self,
obj: &DefaultDicomObject,
elem: &'a InMemElement,
) -> Result<Option<Cow<'a, InMemElement>>>
fn process_element<'a>( &'a self, obj: &DefaultDicomObject, elem: &'a InMemElement, ) -> Result<Option<Cow<'a, InMemElement>>>
Process a DICOM data element according to the configured anonymization rules
Takes a DICOM object and one of its elements, applies the appropriate anonymization action based on the configuration, and returns the result.
§Arguments
obj
- Reference to the DICOM object containing the elementelem
- Reference to the element to be processed
§Returns
Returns a Result
containing:
Some(Cow<InMemElement>)
- The processed elementNone
- If the element should be removedErr
- If there was an error processing the element
impl StructuralPartialEq for DefaultProcessor
Auto Trait Implementations§
impl Freeze for DefaultProcessor
impl RefUnwindSafe for DefaultProcessor
impl Send for DefaultProcessor
impl Sync for DefaultProcessor
impl Unpin for DefaultProcessor
impl UnwindSafe for DefaultProcessor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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