pub struct EvidenceLocator {
pub path: Option<String>,
pub start_line: Option<u32>,
pub end_line: Option<u32>,
pub blob_hash: Option<String>,
pub snapshot_id: Option<String>,
}Expand description
Revision-stable locator. Empty fields mean the gatherer did not know.
Fields§
§path: Option<String>§start_line: Option<u32>§end_line: Option<u32>§blob_hash: Option<String>§snapshot_id: Option<String>Implementations§
Source§impl EvidenceLocator
impl EvidenceLocator
pub fn from_source(source: &str) -> Self
pub fn is_empty(&self) -> bool
Sourcepub fn is_revision_stale(&self, current: &Self) -> bool
pub fn is_revision_stale(&self, current: &Self) -> bool
True when both locators name the same span but a different blob or
snapshot, so a packet citing self is stale against current.
Trait Implementations§
Source§impl Clone for EvidenceLocator
impl Clone for EvidenceLocator
Source§impl Debug for EvidenceLocator
impl Debug for EvidenceLocator
Source§impl Default for EvidenceLocator
impl Default for EvidenceLocator
Source§impl<'de> Deserialize<'de> for EvidenceLocator
impl<'de> Deserialize<'de> for EvidenceLocator
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 EvidenceLocator
Source§impl Hash for EvidenceLocator
impl Hash for EvidenceLocator
Source§impl PartialEq for EvidenceLocator
impl PartialEq for EvidenceLocator
Source§impl Serialize for EvidenceLocator
impl Serialize for EvidenceLocator
impl StructuralPartialEq for EvidenceLocator
Auto Trait Implementations§
impl Freeze for EvidenceLocator
impl RefUnwindSafe for EvidenceLocator
impl Send for EvidenceLocator
impl Sync for EvidenceLocator
impl Unpin for EvidenceLocator
impl UnsafeUnpin for EvidenceLocator
impl UnwindSafe for EvidenceLocator
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