pub struct SourceAnchor {
pub revision: Option<RevisionRef>,
pub path: String,
pub symbol_id: String,
pub start_line: Option<u32>,
pub end_line: Option<u32>,
pub thread: Option<ThreadRef>,
pub target: Option<SourceTargetReference>,
pub path_kind: i32,
pub path_kind_source: i32,
}Fields§
§revision: Option<RevisionRef>§path: String§symbol_id: String§start_line: Option<u32>§end_line: Option<u32>§thread: Option<ThreadRef>Owning Thread for replicated source annotations; its spool must equal the exact revision spool. Source bytes alone do not identify a causal history.
target: Option<SourceTargetReference>Optional shared target identity and explicit tracking policy. Coordinates above remain original signed evidence. Omitted means exact-location only; implementations MUST NOT infer tracking from the owning Thread.
path_kind: i32RECORDED means the original canonical source map contains path_kind, appended after optional target, as “file” or “directory”. Unknown omits the key, preserving old bytes/signatures. DERIVED is read metadata only, obtained from this exact revision and never written back into signed bytes. Content-read authorization and redaction precede lookup AND emission, including recorded kinds. Hidden/missing paths never disclose their type.
path_kind_source: i32Implementations§
Source§impl SourceAnchor
impl SourceAnchor
Sourcepub fn start_line(&self) -> u32
pub fn start_line(&self) -> u32
Returns the value of start_line, or the default value if start_line is unset.
Sourcepub fn end_line(&self) -> u32
pub fn end_line(&self) -> u32
Returns the value of end_line, or the default value if end_line is unset.
Sourcepub fn path_kind(&self) -> SourcePathKind
pub fn path_kind(&self) -> SourcePathKind
Returns the enum value of path_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_path_kind(&mut self, value: SourcePathKind)
pub fn set_path_kind(&mut self, value: SourcePathKind)
Sets path_kind to the provided enum value.
Sourcepub fn path_kind_source(&self) -> SourcePathKindSource
pub fn path_kind_source(&self) -> SourcePathKindSource
Returns the enum value of path_kind_source, or the default if the field is set to an invalid enum value.
Sourcepub fn set_path_kind_source(&mut self, value: SourcePathKindSource)
pub fn set_path_kind_source(&mut self, value: SourcePathKindSource)
Sets path_kind_source to the provided enum value.
Trait Implementations§
Source§impl Clone for SourceAnchor
impl Clone for SourceAnchor
Source§fn clone(&self) -> SourceAnchor
fn clone(&self) -> SourceAnchor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceAnchor
impl Debug for SourceAnchor
Source§impl Default for SourceAnchor
impl Default for SourceAnchor
Source§fn default() -> SourceAnchor
fn default() -> SourceAnchor
impl Eq for SourceAnchor
Source§impl Hash for SourceAnchor
impl Hash for SourceAnchor
Source§impl Message for SourceAnchor
impl Message for SourceAnchor
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SourceAnchor
impl PartialEq for SourceAnchor
impl StructuralPartialEq for SourceAnchor
Auto Trait Implementations§
impl Freeze for SourceAnchor
impl RefUnwindSafe for SourceAnchor
impl Send for SourceAnchor
impl Sync for SourceAnchor
impl Unpin for SourceAnchor
impl UnsafeUnpin for SourceAnchor
impl UnwindSafe for SourceAnchor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more