pub enum ReleaseIdentityMode {
ExactTag,
VPrefixedStableSemver,
}Expand description
Finite producer mapping from an immutable source tag to manifest identity.
Variants§
ExactTag
Preserve the historical opaque tag as the manifest release id.
VPrefixedStableSemver
Map exactly vMAJOR.MINOR.PATCH to MAJOR.MINOR.PATCH.
Implementations§
Source§impl ReleaseIdentityMode
impl ReleaseIdentityMode
Sourcepub fn release_id(self, tag: &str) -> Result<String, GithubError>
pub fn release_id(self, tag: &str) -> Result<String, GithubError>
Resolve the finite manifest identity for one validated source tag.
Trait Implementations§
Source§impl Clone for ReleaseIdentityMode
impl Clone for ReleaseIdentityMode
impl Copy for ReleaseIdentityMode
Source§impl Debug for ReleaseIdentityMode
impl Debug for ReleaseIdentityMode
Source§impl<'de> Deserialize<'de> for ReleaseIdentityMode
impl<'de> Deserialize<'de> for ReleaseIdentityMode
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 ReleaseIdentityMode
Source§impl PartialEq for ReleaseIdentityMode
impl PartialEq for ReleaseIdentityMode
Source§impl Serialize for ReleaseIdentityMode
impl Serialize for ReleaseIdentityMode
impl StructuralPartialEq for ReleaseIdentityMode
Auto Trait Implementations§
impl Forget for ReleaseIdentityMode
impl Freeze for ReleaseIdentityMode
impl Move for ReleaseIdentityMode
impl RefUnwindSafe for ReleaseIdentityMode
impl Send for ReleaseIdentityMode
impl Sync for ReleaseIdentityMode
impl Unpin for ReleaseIdentityMode
impl UnsafeUnpin for ReleaseIdentityMode
impl UnwindSafe for ReleaseIdentityMode
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.