pub enum RegistryAnswer {
CratesIo,
Pypi,
None,
}Expand description
Where an automatic release publishes: profile.release.registry.
A rust release takes crates-io or none, and a python release takes
pypi or none. An absent answer reads as the driver’s registry, so a
target that never answered keeps its behavior and its record.
SATISFIES project-profile:release-intent-has-three-modes
Variants§
CratesIo
The crate publishes to crates.io.
Pypi
The package publishes to the Python Package Index.
None
The release publishes to no registry: the tag and the release page are the publication.
Implementations§
Source§impl RegistryAnswer
impl RegistryAnswer
Sourcepub const SHAPE: &'static str = "crates-io or none for profile.release.driver = \"rust\", and pypi or none for profile.release.driver = \"python\""
pub const SHAPE: &'static str = "crates-io or none for profile.release.driver = \"rust\", and pypi or none for profile.release.driver = \"python\""
The answers each driver takes, as the refusals name them.
Sourcepub fn default_for(driver: &str) -> Option<Self>
pub fn default_for(driver: &str) -> Option<Self>
The registry an unanswered driver publishes to, or None for a
driver the answer is not valid for.
Trait Implementations§
Source§impl Clone for RegistryAnswer
impl Clone for RegistryAnswer
impl Copy for RegistryAnswer
Source§impl Debug for RegistryAnswer
impl Debug for RegistryAnswer
Source§impl<'de> Deserialize<'de> for RegistryAnswer
impl<'de> Deserialize<'de> for RegistryAnswer
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
impl Eq for RegistryAnswer
Source§impl PartialEq for RegistryAnswer
impl PartialEq for RegistryAnswer
Source§impl Serialize for RegistryAnswer
impl Serialize for RegistryAnswer
impl StructuralPartialEq for RegistryAnswer
Auto Trait Implementations§
impl Forget for RegistryAnswer
impl Freeze for RegistryAnswer
impl Move for RegistryAnswer
impl RefUnwindSafe for RegistryAnswer
impl Send for RegistryAnswer
impl Sync for RegistryAnswer
impl Unpin for RegistryAnswer
impl UnsafeUnpin for RegistryAnswer
impl UnwindSafe for RegistryAnswer
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.