Struct install_wheel_rs::Script
source · pub struct Script {
pub script_name: String,
pub module: String,
pub function: String,
}
Fields§
§script_name: String
§module: String
§function: String
Implementations§
source§impl Script
impl Script
sourcepub fn from_value(
script_name: &str,
value: &str,
extras: Option<&[String]>
) -> Result<Option<Script>, Error>
pub fn from_value( script_name: &str, value: &str, extras: Option<&[String]> ) -> Result<Option<Script>, Error>
Parses a script definition like foo.bar:main
or foomod:main_bar [bar,baz]
https://packaging.python.org/en/latest/specifications/entry-points/
Extras are supposed to be ignored, which happens if you pass None for extras
Trait Implementations§
source§impl PartialEq<Script> for Script
impl PartialEq<Script> for Script
impl Eq for Script
impl StructuralEq for Script
impl StructuralPartialEq for Script
Auto Trait Implementations§
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.