pub enum MakeLatestConfig {
Auto,
Bool(bool),
String(String),
}Expand description
make_latest can be the string "auto", a boolean, or a template string.
GoReleaser renders this field through its template engine at publish time,
so we accept arbitrary strings (e.g. "{{ if .IsSnapshot }}false{{ else }}true{{ end }}")
and defer resolution to the release stage.
Variants§
Trait Implementations§
Source§impl Clone for MakeLatestConfig
impl Clone for MakeLatestConfig
Source§fn clone(&self) -> MakeLatestConfig
fn clone(&self) -> MakeLatestConfig
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 MakeLatestConfig
impl Debug for MakeLatestConfig
Source§impl<'de> Deserialize<'de> for MakeLatestConfig
impl<'de> Deserialize<'de> for MakeLatestConfig
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MakeLatestConfig
impl PartialEq for MakeLatestConfig
Source§fn eq(&self, other: &MakeLatestConfig) -> bool
fn eq(&self, other: &MakeLatestConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MakeLatestConfig
impl Serialize for MakeLatestConfig
impl Eq for MakeLatestConfig
impl StructuralPartialEq for MakeLatestConfig
Auto Trait Implementations§
impl Freeze for MakeLatestConfig
impl RefUnwindSafe for MakeLatestConfig
impl Send for MakeLatestConfig
impl Sync for MakeLatestConfig
impl Unpin for MakeLatestConfig
impl UnsafeUnpin for MakeLatestConfig
impl UnwindSafe for MakeLatestConfig
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,
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.