Struct gitmoji_rs::GitmojiConfig
source · [−]pub struct GitmojiConfig { /* private fields */ }
Expand description
The Gitmojis configuration
Implementations
sourceimpl GitmojiConfig
impl GitmojiConfig
sourcepub const fn new(
auto_add: bool,
format: EmojiFormat,
signed: bool,
scope: bool,
update_url: Url
) -> Self
pub const fn new(
auto_add: bool,
format: EmojiFormat,
signed: bool,
scope: bool,
update_url: Url
) -> Self
Create a new GitmojiConfig
sourcepub fn merge(&mut self, local_config: &LocalGitmojiConfig)
pub fn merge(&mut self, local_config: &LocalGitmojiConfig)
Merge with a local configuration
sourcepub const fn format(&self) -> &EmojiFormat
pub const fn format(&self) -> &EmojiFormat
The format of gitmoji (code or emoji)
sourcepub fn update_url(&self) -> &str
pub fn update_url(&self) -> &str
The URL used for update
sourcepub fn set_update_url(&mut self, update_url: Url)
pub fn set_update_url(&mut self, update_url: Url)
Set the URL used for update
sourcepub const fn last_update(&self) -> Option<OffsetDateTime>
pub const fn last_update(&self) -> Option<OffsetDateTime>
The last time the gitmoji list was updated
sourcepub fn set_gitmojis(&mut self, gitmojis: Vec<Gitmoji>)
pub fn set_gitmojis(&mut self, gitmojis: Vec<Gitmoji>)
Set the gitmojis list
Trait Implementations
sourceimpl Clone for GitmojiConfig
impl Clone for GitmojiConfig
sourcefn clone(&self) -> GitmojiConfig
fn clone(&self) -> GitmojiConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GitmojiConfig
impl Debug for GitmojiConfig
sourceimpl Default for GitmojiConfig
impl Default for GitmojiConfig
sourceimpl<'de> Deserialize<'de> for GitmojiConfig where
GitmojiConfig: Default,
impl<'de> Deserialize<'de> for GitmojiConfig where
GitmojiConfig: Default,
sourcefn 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
sourceimpl PartialEq<GitmojiConfig> for GitmojiConfig
impl PartialEq<GitmojiConfig> for GitmojiConfig
sourcefn eq(&self, other: &GitmojiConfig) -> bool
fn eq(&self, other: &GitmojiConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GitmojiConfig) -> bool
fn ne(&self, other: &GitmojiConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for GitmojiConfig
impl Serialize for GitmojiConfig
impl Eq for GitmojiConfig
impl StructuralEq for GitmojiConfig
impl StructuralPartialEq for GitmojiConfig
Auto Trait Implementations
impl RefUnwindSafe for GitmojiConfig
impl Send for GitmojiConfig
impl Sync for GitmojiConfig
impl Unpin for GitmojiConfig
impl UnwindSafe for GitmojiConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more