pub struct SourceSnapshot { /* private fields */ }Expand description
Immutable identity of one source revision in an evidence session.
Implementations§
Source§impl SourceSnapshot
impl SourceSnapshot
Sourcepub fn try_new(
source: SourceId,
revision: impl Into<Arc<str>>,
fingerprint: impl Into<Arc<str>>,
) -> Result<Self, EvidenceSessionError>
pub fn try_new( source: SourceId, revision: impl Into<Arc<str>>, fingerprint: impl Into<Arc<str>>, ) -> Result<Self, EvidenceSessionError>
Creates an exact source snapshot identity.
Sourcepub fn with_schema(
self,
schema: impl Into<Arc<str>>,
) -> Result<Self, EvidenceSessionError>
pub fn with_schema( self, schema: impl Into<Arc<str>>, ) -> Result<Self, EvidenceSessionError>
Binds a source-declared semantic schema to the immutable snapshot.
Sourcepub fn fingerprint(&self) -> &str
pub fn fingerprint(&self) -> &str
Content fingerprint, including its algorithm when applicable.
Trait Implementations§
Source§impl Clone for SourceSnapshot
impl Clone for SourceSnapshot
Source§fn clone(&self) -> SourceSnapshot
fn clone(&self) -> SourceSnapshot
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 SourceSnapshot
impl Debug for SourceSnapshot
Source§impl PartialEq for SourceSnapshot
impl PartialEq for SourceSnapshot
impl Eq for SourceSnapshot
impl StructuralPartialEq for SourceSnapshot
Auto Trait Implementations§
impl Freeze for SourceSnapshot
impl RefUnwindSafe for SourceSnapshot
impl Send for SourceSnapshot
impl Sync for SourceSnapshot
impl Unpin for SourceSnapshot
impl UnwindSafe for SourceSnapshot
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