#[non_exhaustive]pub struct PythonPackage {
pub repository: String,
pub paths: Vec<String>,
}Expand description
Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.
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.repository: StringArtifact Registry repository, in the form “https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY”
Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
paths: Vec<String>Path globs used to match files in the build’s workspace. For Python/
Twine, this is usually dist/*, and sometimes additionally an .asc
file.
Implementations§
Source§impl PythonPackage
impl PythonPackage
Sourcepub fn set_repository<T: Into<String>>(self, v: T) -> Self
pub fn set_repository<T: Into<String>>(self, v: T) -> Self
Sets the value of repository.
Trait Implementations§
Source§impl Clone for PythonPackage
impl Clone for PythonPackage
Source§fn clone(&self) -> PythonPackage
fn clone(&self) -> PythonPackage
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 PythonPackage
impl Debug for PythonPackage
Source§impl Default for PythonPackage
impl Default for PythonPackage
Source§fn default() -> PythonPackage
fn default() -> PythonPackage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PythonPackagewhere
PythonPackage: Default,
impl<'de> Deserialize<'de> for PythonPackagewhere
PythonPackage: 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 PythonPackage
impl Message for PythonPackage
Source§impl PartialEq for PythonPackage
impl PartialEq for PythonPackage
Source§impl Serialize for PythonPackage
impl Serialize for PythonPackage
impl StructuralPartialEq for PythonPackage
Auto Trait Implementations§
impl Freeze for PythonPackage
impl RefUnwindSafe for PythonPackage
impl Send for PythonPackage
impl Sync for PythonPackage
impl Unpin for PythonPackage
impl UnwindSafe for PythonPackage
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