pub struct FileRefs {
pub roots: Vec<String>,
pub formats: Vec<RefFormat>,
}Expand description
[file_refs] — how document ids are mentioned in code, for opys show <id> --refs and the post-renumber reference warning. This is about textual
mentions of an id (e.g. FEAT-0123) in source files, distinct from the
references relation maps between documents (see crate::refs).
Fields§
§roots: Vec<String>Directories to scan, project-root relative. Defaults to the whole project
(["."]). The inventory base, .git, target, node_modules, and
hidden directories are always skipped.
formats: Vec<RefFormat>The textual forms an id may take in code. When empty, a single canonical
{id} word-boundary format is assumed (see FileRefs::effective_formats).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileRefs
impl<'de> Deserialize<'de> for FileRefs
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
Auto Trait Implementations§
impl Freeze for FileRefs
impl RefUnwindSafe for FileRefs
impl Send for FileRefs
impl Sync for FileRefs
impl Unpin for FileRefs
impl UnsafeUnpin for FileRefs
impl UnwindSafe for FileRefs
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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