#[non_exhaustive]pub struct SdpFindingLocation {
pub byte_range: Option<RangeInfo>,
pub codepoint_range: Option<RangeInfo>,
/* private fields */
}Expand description
Location of this Sensitive Data Protection Finding within input content.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.byte_range: Option<RangeInfo>Zero-based byte offsets delimiting the finding. These are relative to the finding’s containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content.
codepoint_range: Option<RangeInfo>Unicode character offsets delimiting the finding. These are relative to the finding’s containing element. Provided when the content is text.
Implementations§
Source§impl SdpFindingLocation
impl SdpFindingLocation
pub fn new() -> Self
Sourcepub fn set_byte_range<T>(self, v: T) -> Self
pub fn set_byte_range<T>(self, v: T) -> Self
Sets the value of byte_range.
Sourcepub fn set_or_clear_byte_range<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_byte_range<T>(self, v: Option<T>) -> Self
Sets or clears the value of byte_range.
Sourcepub fn set_codepoint_range<T>(self, v: T) -> Self
pub fn set_codepoint_range<T>(self, v: T) -> Self
Sets the value of codepoint_range.
Sourcepub fn set_or_clear_codepoint_range<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_codepoint_range<T>(self, v: Option<T>) -> Self
Sets or clears the value of codepoint_range.
Trait Implementations§
Source§impl Clone for SdpFindingLocation
impl Clone for SdpFindingLocation
Source§fn clone(&self) -> SdpFindingLocation
fn clone(&self) -> SdpFindingLocation
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 SdpFindingLocation
impl Debug for SdpFindingLocation
Source§impl Default for SdpFindingLocation
impl Default for SdpFindingLocation
Source§fn default() -> SdpFindingLocation
fn default() -> SdpFindingLocation
Returns the “default value” for a type. Read more
Source§impl Message for SdpFindingLocation
impl Message for SdpFindingLocation
Source§impl PartialEq for SdpFindingLocation
impl PartialEq for SdpFindingLocation
impl StructuralPartialEq for SdpFindingLocation
Auto Trait Implementations§
impl Freeze for SdpFindingLocation
impl RefUnwindSafe for SdpFindingLocation
impl Send for SdpFindingLocation
impl Sync for SdpFindingLocation
impl Unpin for SdpFindingLocation
impl UnwindSafe for SdpFindingLocation
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