pub enum IfExistsAction {
Fail,
CreateVersion,
FindOrCreateVersion,
}Expand description
Behavior when publishing an artifact that already exists
Variants§
Fail
Fail if artifact already exists
CreateVersion
Create a new version if artifact exists
FindOrCreateVersion
Find existing version or create new one
Trait Implementations§
Source§impl Clone for IfExistsAction
impl Clone for IfExistsAction
Source§fn clone(&self) -> IfExistsAction
fn clone(&self) -> IfExistsAction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IfExistsAction
impl Debug for IfExistsAction
Source§impl Default for IfExistsAction
impl Default for IfExistsAction
Source§fn default() -> IfExistsAction
fn default() -> IfExistsAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IfExistsAction
impl<'de> Deserialize<'de> for IfExistsAction
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
Auto Trait Implementations§
impl Freeze for IfExistsAction
impl RefUnwindSafe for IfExistsAction
impl Send for IfExistsAction
impl Sync for IfExistsAction
impl Unpin for IfExistsAction
impl UnwindSafe for IfExistsAction
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