Struct nvim_oxi::types::AutocmdInfos
source · [−]#[non_exhaustive]pub struct AutocmdInfos {
pub buffer: Option<Buffer>,
pub buflocal: bool,
pub command: String,
pub desc: Option<String>,
pub event: String,
pub group: Option<u32>,
pub group_name: Option<String>,
pub id: Option<u32>,
pub once: bool,
pub pattern: String,
}Expand description
Informations related to an autocommand.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.buffer: Option<Buffer>The Buffer associated to the autocommand. Only present if buflocal
is true.
buflocal: boolWhether the autocommand is a buffer-local one.
command: StringThe command executed by the autocommand.
desc: Option<String>The autocommand’s description.
event: StringThe event triggering the autocommand.
group: Option<u32>The autocommand group’s id. Only present if the autocommand belongs to an autocommand group.
group_name: Option<String>The autocommand group’s name. Only present if the autocommand belongs to an autocommand group.
id: Option<u32>The autocommand id.
once: boolWhether the autocommand is only run once.
pattern: StringThe autocommand’s pattern.
Trait Implementations
sourceimpl Clone for AutocmdInfos
impl Clone for AutocmdInfos
sourcefn clone(&self) -> AutocmdInfos
fn clone(&self) -> AutocmdInfos
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 AutocmdInfos
impl Debug for AutocmdInfos
sourceimpl<'de> Deserialize<'de> for AutocmdInfos
impl<'de> Deserialize<'de> for AutocmdInfos
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 FromObject for AutocmdInfos
impl FromObject for AutocmdInfos
sourceimpl Hash for AutocmdInfos
impl Hash for AutocmdInfos
sourceimpl PartialEq<AutocmdInfos> for AutocmdInfos
impl PartialEq<AutocmdInfos> for AutocmdInfos
sourcefn eq(&self, other: &AutocmdInfos) -> bool
fn eq(&self, other: &AutocmdInfos) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AutocmdInfos) -> bool
fn ne(&self, other: &AutocmdInfos) -> bool
This method tests for !=.
impl Eq for AutocmdInfos
impl StructuralEq for AutocmdInfos
impl StructuralPartialEq for AutocmdInfos
Auto Trait Implementations
impl RefUnwindSafe for AutocmdInfos
impl Send for AutocmdInfos
impl Sync for AutocmdInfos
impl Unpin for AutocmdInfos
impl UnwindSafe for AutocmdInfos
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