pub struct ScriptMetadata {
pub requires_python: Option<String>,
pub dependencies: Vec<String>,
}Expand description
Metadata extracted from a PEP 723 script
Fields§
§requires_python: Option<String>Required Python version (PEP 440 specifier)
dependencies: Vec<String>Package dependencies
Implementations§
Source§impl ScriptMetadata
impl ScriptMetadata
Sourcepub fn has_dependencies(&self) -> bool
pub fn has_dependencies(&self) -> bool
Check if the script has dependencies
Sourcepub fn dependency_hash(&self) -> String
pub fn dependency_hash(&self) -> String
Generate a hash of the dependencies for caching
Trait Implementations§
Source§impl Clone for ScriptMetadata
impl Clone for ScriptMetadata
Source§fn clone(&self) -> ScriptMetadata
fn clone(&self) -> ScriptMetadata
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 ScriptMetadata
impl Debug for ScriptMetadata
Source§impl Default for ScriptMetadata
impl Default for ScriptMetadata
Source§fn default() -> ScriptMetadata
fn default() -> ScriptMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScriptMetadata
impl RefUnwindSafe for ScriptMetadata
impl Send for ScriptMetadata
impl Sync for ScriptMetadata
impl Unpin for ScriptMetadata
impl UnwindSafe for ScriptMetadata
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