pub struct PythonOptions {
pub entry_point: Option<String>,
pub packages: Option<Vec<String>>,
}Expand description
Options for a user-defined Python function.
This type is not used in any activity, and only used as part of another schema.
Fields§
§entry_point: Option<String>Required. The name of the function defined in Python code as the entry point when the Python UDF is invoked.
packages: Option<Vec<String>>Optional. A list of Python package names along with versions to be installed. Example: [“pandas>=2.1”, “google-cloud-translate==3.11”]. For more information, see Use third-party packages.
Trait Implementations§
Source§impl Clone for PythonOptions
impl Clone for PythonOptions
Source§fn clone(&self) -> PythonOptions
fn clone(&self) -> PythonOptions
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 PythonOptions
impl Debug for PythonOptions
Source§impl Default for PythonOptions
impl Default for PythonOptions
Source§fn default() -> PythonOptions
fn default() -> PythonOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PythonOptions
impl<'de> Deserialize<'de> for PythonOptions
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
Source§impl Serialize for PythonOptions
impl Serialize for PythonOptions
impl Part for PythonOptions
Auto Trait Implementations§
impl Freeze for PythonOptions
impl RefUnwindSafe for PythonOptions
impl Send for PythonOptions
impl Sync for PythonOptions
impl Unpin for PythonOptions
impl UnwindSafe for PythonOptions
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