pub struct Location {
pub file: Option<PathBuf>,
pub cpl_id: Option<ImfUuid>,
pub cpl_filename: Option<String>,
pub cpl_title: Option<String>,
pub segment: Option<usize>,
pub sequence_id: Option<String>,
pub resource_id: Option<String>,
pub timecode: Option<String>,
pub line: Option<usize>,
pub path: Option<String>,
}Expand description
Location where the issue was found
Fields§
§file: Option<PathBuf>File path if applicable
cpl_id: Option<ImfUuid>CPL UUID if applicable
cpl_filename: Option<String>CPL filename if applicable
cpl_title: Option<String>CPL content title if applicable
segment: Option<usize>Segment index (0-based)
sequence_id: Option<String>Sequence UUID if applicable
resource_id: Option<String>Resource UUID if applicable
timecode: Option<String>Timecode if applicable
line: Option<usize>Line number in XML file
path: Option<String>XPath or field path
Implementations§
Source§impl Location
impl Location
pub fn new() -> Self
pub fn with_file(self, file: PathBuf) -> Self
pub fn with_cpl(self, cpl_id: ImfUuid) -> Self
pub fn with_cpl_filename(self, filename: impl Into<String>) -> Self
pub fn with_cpl_title(self, title: impl Into<String>) -> Self
pub fn with_segment(self, segment: usize) -> Self
pub fn with_resource(self, resource: usize) -> Self
pub fn with_sequence(self, sequence_id: String) -> Self
pub fn with_path(self, path: String) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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 Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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