pub struct JsExtension { /* private fields */ }Trait Implementations§
Source§impl Clone for JsExtension
impl Clone for JsExtension
Source§fn clone(&self) -> JsExtension
fn clone(&self) -> JsExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JsExtension
impl Debug for JsExtension
Source§impl Extension for JsExtension
impl Extension for JsExtension
Source§fn identify_package_dependencies(
&self,
package_name: &str,
package_version: &Option<&str>,
_extension_args: &[String],
) -> Result<Vec<PackageDependencies>>
fn identify_package_dependencies( &self, package_name: &str, package_version: &Option<&str>, _extension_args: &[String], ) -> Result<Vec<PackageDependencies>>
Returns a list of dependencies for the given package.
Returns one package dependencies structure per registry.
Source§fn registries(&self) -> Vec<String>
fn registries(&self) -> Vec<String>
Return registry host names supported by this extension.
Source§fn identify_file_defined_dependencies(
&self,
working_directory: &Path,
extension_args: &[String],
) -> Result<Vec<FileDefinedDependencies>>
fn identify_file_defined_dependencies( &self, working_directory: &Path, extension_args: &[String], ) -> Result<Vec<FileDefinedDependencies>>
Identify file defined dependencies.
Source§fn registries_package_metadata(
&self,
package_name: &str,
package_version: &Option<&str>,
) -> Result<Vec<RegistryPackageMetadata>>
fn registries_package_metadata( &self, package_name: &str, package_version: &Option<&str>, ) -> Result<Vec<RegistryPackageMetadata>>
Query package registries for package metadata.
Source§fn review_target_policy(&self) -> ReviewTargetPolicy
fn review_target_policy(&self) -> ReviewTargetPolicy
Return automatic review-target selection policy for this extension.
Auto Trait Implementations§
impl Freeze for JsExtension
impl RefUnwindSafe for JsExtension
impl Send for JsExtension
impl Sync for JsExtension
impl Unpin for JsExtension
impl UnsafeUnpin for JsExtension
impl UnwindSafe for JsExtension
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