#[non_exhaustive]pub struct PackageSpec {
pub pickle_object_gcs_uri: String,
pub dependency_files_gcs_uri: String,
pub requirements_gcs_uri: String,
pub python_version: String,
/* private fields */
}Expand description
User provided package spec like pickled object and package requirements.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pickle_object_gcs_uri: StringOptional. The Cloud Storage URI of the pickled python object.
dependency_files_gcs_uri: StringOptional. The Cloud Storage URI of the dependency files in tar.gz format.
requirements_gcs_uri: StringOptional. The Cloud Storage URI of the requirements.txt file
python_version: StringOptional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. If not specified, default value is 3.10.
Implementations§
Source§impl PackageSpec
impl PackageSpec
pub fn new() -> Self
Sourcepub fn set_pickle_object_gcs_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_pickle_object_gcs_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of pickle_object_gcs_uri.
Sourcepub fn set_dependency_files_gcs_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_dependency_files_gcs_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of dependency_files_gcs_uri.
Sourcepub fn set_requirements_gcs_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_requirements_gcs_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of requirements_gcs_uri.
Sourcepub fn set_python_version<T: Into<String>>(self, v: T) -> Self
pub fn set_python_version<T: Into<String>>(self, v: T) -> Self
Sets the value of python_version.
Trait Implementations§
Source§impl Clone for PackageSpec
impl Clone for PackageSpec
Source§fn clone(&self) -> PackageSpec
fn clone(&self) -> PackageSpec
Returns a copy 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 PackageSpec
impl Debug for PackageSpec
Source§impl Default for PackageSpec
impl Default for PackageSpec
Source§fn default() -> PackageSpec
fn default() -> PackageSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageSpecwhere
PackageSpec: Default,
impl<'de> Deserialize<'de> for PackageSpecwhere
PackageSpec: Default,
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 Message for PackageSpec
impl Message for PackageSpec
Source§impl PartialEq for PackageSpec
impl PartialEq for PackageSpec
Source§impl Serialize for PackageSpec
impl Serialize for PackageSpec
impl StructuralPartialEq for PackageSpec
Auto Trait Implementations§
impl Freeze for PackageSpec
impl RefUnwindSafe for PackageSpec
impl Send for PackageSpec
impl Sync for PackageSpec
impl Unpin for PackageSpec
impl UnwindSafe for PackageSpec
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