pub struct PythonPackageMeta {
pub entry_module: String,
pub requirements: Option<String>,
}Expand description
Fields under the [python] section of package.toml. Required when
package.runtime == "python", rejected otherwise.
Fields§
§entry_module: StringPython module the loader imports first. Dotted-path form (e.g.
"my_plugin.entry") corresponding to a file inside the package
directory or its vendor/ tree.
requirements: Option<String>Path to the requirements file consumed by fidius pack to vendor
dependencies into vendor/. Defaults to "requirements.txt".
Implementations§
Source§impl PythonPackageMeta
impl PythonPackageMeta
Sourcepub fn requirements_path(&self) -> &str
pub fn requirements_path(&self) -> &str
Returns the requirements file path, defaulting to "requirements.txt".
Trait Implementations§
Source§impl Clone for PythonPackageMeta
impl Clone for PythonPackageMeta
Source§fn clone(&self) -> PythonPackageMeta
fn clone(&self) -> PythonPackageMeta
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 PythonPackageMeta
impl Debug for PythonPackageMeta
Source§impl<'de> Deserialize<'de> for PythonPackageMeta
impl<'de> Deserialize<'de> for PythonPackageMeta
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 PythonPackageMeta
impl RefUnwindSafe for PythonPackageMeta
impl Send for PythonPackageMeta
impl Sync for PythonPackageMeta
impl Unpin for PythonPackageMeta
impl UnsafeUnpin for PythonPackageMeta
impl UnwindSafe for PythonPackageMeta
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