#[non_exhaustive]pub struct NpmPackage {
pub repository: String,
pub package_path: String,
}Expand description
Npm package to upload to Artifact Registry upon successful completion of all build steps.
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-npm.pkg.dev/$PROJECT/$REPOSITORY”
Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
package_path: StringPath to the package.json. e.g. workspace/path/to/package
Implementations§
Source§impl NpmPackage
impl NpmPackage
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.
Sourcepub fn set_package_path<T: Into<String>>(self, v: T) -> Self
pub fn set_package_path<T: Into<String>>(self, v: T) -> Self
Sets the value of package_path.
Trait Implementations§
Source§impl Clone for NpmPackage
impl Clone for NpmPackage
Source§fn clone(&self) -> NpmPackage
fn clone(&self) -> NpmPackage
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 NpmPackage
impl Debug for NpmPackage
Source§impl Default for NpmPackage
impl Default for NpmPackage
Source§fn default() -> NpmPackage
fn default() -> NpmPackage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NpmPackagewhere
NpmPackage: Default,
impl<'de> Deserialize<'de> for NpmPackagewhere
NpmPackage: 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 PartialEq for NpmPackage
impl PartialEq for NpmPackage
Source§impl Serialize for NpmPackage
impl Serialize for NpmPackage
impl StructuralPartialEq for NpmPackage
Auto Trait Implementations§
impl Freeze for NpmPackage
impl RefUnwindSafe for NpmPackage
impl Send for NpmPackage
impl Sync for NpmPackage
impl Unpin for NpmPackage
impl UnwindSafe for NpmPackage
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