pub enum RegistrySource {
Npm {
package: String,
path: Option<String>,
},
Github {
repo: String,
branch: Option<String>,
tag: Option<String>,
path: Option<String>,
},
Web {
urls: Vec<String>,
max_depth: Option<u32>,
allowed_path_prefix: Option<String>,
},
LlmsTxt {
url: String,
},
}Expand description
A way to fetch one package’s docs (discriminated on type). Mirrors the
sourceSchema discriminated union: npm | github | web | llms-txt.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RegistrySource
impl Clone for RegistrySource
Source§impl Debug for RegistrySource
impl Debug for RegistrySource
Source§impl<'de> Deserialize<'de> for RegistrySource
impl<'de> Deserialize<'de> for RegistrySource
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 RegistrySource
Source§impl PartialEq for RegistrySource
impl PartialEq for RegistrySource
Source§impl Serialize for RegistrySource
impl Serialize for RegistrySource
impl StructuralPartialEq for RegistrySource
Auto Trait Implementations§
impl Forget for RegistrySource
impl Freeze for RegistrySource
impl Move for RegistrySource
impl RefUnwindSafe for RegistrySource
impl Send for RegistrySource
impl Sync for RegistrySource
impl Unpin for RegistrySource
impl UnsafeUnpin for RegistrySource
impl UnwindSafe for RegistrySource
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