#[repr(u8)]pub(crate) enum ReleaseTarget {
Cargo {
manifest: RepositoryPath,
publish: bool,
},
Npm {
manifest: RepositoryPath,
publish: bool,
},
VersionFile {
version_file: RepositoryPath,
},
Document {
path: RepositoryPath,
key: ManagedPath,
},
}Expand description
The ecosystem-specific version source and publication destination.
Variants§
Cargo
A Cargo package.
Fields
§
manifest: RepositoryPathCargo manifest, relative to the repository root.
Npm
An npm package.
Fields
§
manifest: RepositoryPathThe package.json, relative to the repository root.
VersionFile
A plain file holding one semantic version.
Fields
§
version_file: RepositoryPathThe version file, relative to the repository root.
Document
A string at a key path inside a TOML, YAML, or JSON document.
Fields
§
path: RepositoryPathThe document, relative to the repository root.
§
key: ManagedPathThe key path of the version string.
Trait Implementations§
Source§impl Clone for ReleaseTarget
impl Clone for ReleaseTarget
Source§fn clone(&self) -> ReleaseTarget
fn clone(&self) -> ReleaseTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReleaseTarget
impl Debug for ReleaseTarget
impl Eq for ReleaseTarget
Source§impl<'ʄ> Facet<'ʄ> for ReleaseTarget
impl<'ʄ> Facet<'ʄ> for ReleaseTarget
Source§impl PartialEq for ReleaseTarget
impl PartialEq for ReleaseTarget
impl StructuralPartialEq for ReleaseTarget
Auto Trait Implementations§
impl Freeze for ReleaseTarget
impl RefUnwindSafe for ReleaseTarget
impl Send for ReleaseTarget
impl Sync for ReleaseTarget
impl Unpin for ReleaseTarget
impl UnsafeUnpin for ReleaseTarget
impl UnwindSafe for ReleaseTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.