pub struct GitRepoSource {
pub url: String,
pub commit: String,
pub paths: Vec<String>,
pub contents: Vec<String>,
}Expand description
Git repository fingerprinting
Fields§
§url: String§commit: String§paths: Vec<String>§contents: Vec<String>Trait Implementations§
Source§impl Fingerprintable for GitRepoSource
impl Fingerprintable for GitRepoSource
Source§fn create_fingerprint(&self) -> Result<ContentFingerprint, Box<dyn Error>>
fn create_fingerprint(&self) -> Result<ContentFingerprint, Box<dyn Error>>
Create a content fingerprint for this source
Source§fn has_changed(
&self,
last_fingerprint: &ContentFingerprint,
) -> Result<bool, Box<dyn Error>>
fn has_changed( &self, last_fingerprint: &ContentFingerprint, ) -> Result<bool, Box<dyn Error>>
Check if content has changed since the last fingerprint
Auto Trait Implementations§
impl Freeze for GitRepoSource
impl RefUnwindSafe for GitRepoSource
impl Send for GitRepoSource
impl Sync for GitRepoSource
impl Unpin for GitRepoSource
impl UnwindSafe for GitRepoSource
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