pub struct TextSelector {
pub fragment: String,
pub start: Option<i32>,
pub end: Option<i32>,
}Expand description
A character-offset selector. fragment is required by the C2PA type; for
plain text there is no sub-resource, so it is empty.
Fields§
§fragment: StringSub-resource fragment identifier; empty for plain text.
start: Option<i32>Start character offset into the normalized stream.
end: Option<i32>End character offset (exclusive) into the normalized stream.
Trait Implementations§
Source§impl Clone for TextSelector
impl Clone for TextSelector
Source§fn clone(&self) -> TextSelector
fn clone(&self) -> TextSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextSelector
impl Debug for TextSelector
Source§impl<'de> Deserialize<'de> for TextSelector
impl<'de> Deserialize<'de> for TextSelector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextSelector
Source§impl PartialEq for TextSelector
impl PartialEq for TextSelector
Source§impl Serialize for TextSelector
impl Serialize for TextSelector
impl StructuralPartialEq for TextSelector
Auto Trait Implementations§
impl Freeze for TextSelector
impl RefUnwindSafe for TextSelector
impl Send for TextSelector
impl Sync for TextSelector
impl Unpin for TextSelector
impl UnsafeUnpin for TextSelector
impl UnwindSafe for TextSelector
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