pub struct CodeAnchorV1 {
pub path: String,
pub symbol: Option<String>,
pub digest: String,
pub lang: Option<String>,
}Expand description
One code anchor.
Fields§
§path: StringRepo-relative, /-separated, NFC; no . or .. segment, no leading
or trailing /.
symbol: Option<String>Language-neutral qualified name from the code graph
(hive::policy::verify_bundle, AuthService.verify); the whole file
when absent.
digest: Stringsha256: + 64 lowercase hex over the normalized symbol span (or the
whole file without a symbol).
lang: Option<String>Tree-sitter language id, a hint only.
Implementations§
Source§impl CodeAnchorV1
impl CodeAnchorV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for CodeAnchorV1
impl Clone for CodeAnchorV1
Source§impl Debug for CodeAnchorV1
impl Debug for CodeAnchorV1
Source§impl<'de> Deserialize<'de> for CodeAnchorV1
impl<'de> Deserialize<'de> for CodeAnchorV1
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 CodeAnchorV1
Source§impl Ord for CodeAnchorV1
impl Ord for CodeAnchorV1
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CodeAnchorV1
impl PartialEq for CodeAnchorV1
Source§impl PartialOrd for CodeAnchorV1
impl PartialOrd for CodeAnchorV1
Source§impl Serialize for CodeAnchorV1
impl Serialize for CodeAnchorV1
impl StructuralPartialEq for CodeAnchorV1
Auto Trait Implementations§
impl Forget for CodeAnchorV1
impl Freeze for CodeAnchorV1
impl Move for CodeAnchorV1
impl RefUnwindSafe for CodeAnchorV1
impl Send for CodeAnchorV1
impl Sync for CodeAnchorV1
impl Unpin for CodeAnchorV1
impl UnsafeUnpin for CodeAnchorV1
impl UnwindSafe for CodeAnchorV1
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