pub enum ScraperInput {
LocalPath(PathBuf),
Url(String),
GitRepo {
url: String,
branch: Option<String>,
commit: Option<String>,
},
Directory {
path: PathBuf,
patterns: Option<Vec<String>>,
},
}Expand description
Input to the scraper
Variants§
LocalPath(PathBuf)
Local file path
Url(String)
HTTP(S) URL
GitRepo
Git repository URL
Directory
Directory path with optional filters
Trait Implementations§
Source§impl Clone for ScraperInput
impl Clone for ScraperInput
Source§fn clone(&self) -> ScraperInput
fn clone(&self) -> ScraperInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScraperInput
impl Debug for ScraperInput
Source§impl<'de> Deserialize<'de> for ScraperInput
impl<'de> Deserialize<'de> for ScraperInput
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 ScraperInput
impl RefUnwindSafe for ScraperInput
impl Send for ScraperInput
impl Sync for ScraperInput
impl Unpin for ScraperInput
impl UnwindSafe for ScraperInput
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