pub struct Asset {
pub path: RepoPath,
pub schema: SchemaRef,
pub sidecar: Option<usize>,
pub has_sidecar: bool,
}Expand description
An Asset is a file that a schema’s asset-files glob matches
(FORMAT-1_AC-1). The tool never reads its content (FORMAT-1_AC-6).
Fields§
§path: RepoPathThe file.
schema: SchemaRefThe schema whose glob matches.
sidecar: Option<usize>The sidecar’s index in the knowledge’s documents, when the .md file
beside the asset exists and the run has read it.
has_sidecar: boolWhether the .md file beside the asset is a document that the run
has read or that the store records.
Implementations§
Trait Implementations§
impl Eq for Asset
impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Forget for Asset
impl Freeze for Asset
impl Move for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnsafeUnpin for Asset
impl UnwindSafe for Asset
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.