#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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: bool
Whether the autocommand is a buffer-local one.
command: String
The command executed by the autocommand.
desc: Option<String>
The autocommand’s description.
event: String
The 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: bool
Whether the autocommand is only run once.
pattern: String
The autocommand’s pattern.
Trait Implementations§
Source§impl Clone for AutocmdInfos
impl Clone for AutocmdInfos
Source§fn clone(&self) -> AutocmdInfos
fn clone(&self) -> AutocmdInfos
Returns a duplicate of the value. Read more
1.0.0 · 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 AutocmdInfos
impl Debug for AutocmdInfos
Source§impl<'de> Deserialize<'de> for AutocmdInfos
impl<'de> Deserialize<'de> for AutocmdInfos
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
Source§impl FromObject for AutocmdInfos
impl FromObject for AutocmdInfos
Source§impl Hash for AutocmdInfos
impl Hash for AutocmdInfos
Source§impl PartialEq for AutocmdInfos
impl PartialEq for AutocmdInfos
impl Eq for AutocmdInfos
impl StructuralPartialEq for AutocmdInfos
Auto Trait Implementations§
impl Freeze for AutocmdInfos
impl RefUnwindSafe for AutocmdInfos
impl Send for AutocmdInfos
impl Sync for AutocmdInfos
impl Unpin for AutocmdInfos
impl UnwindSafe for AutocmdInfos
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