pub struct Metadata {
pub buffer_id: i64,
pub window_id: i64,
pub tabpage_id: i64,
}
Expand description
Type identifiers for certain types, determined at runtime.
Fields§
§buffer_id: i64
§window_id: i64
§tabpage_id: i64
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn new(metadata: Value) -> Result<Metadata, GetMetadataError>
pub fn new(metadata: Value) -> Result<Metadata, GetMetadataError>
Attempt to read metadata information from the provided value.
This method expects the value to represent this type of data structure:
{
"types": {
"Buffer": { "id": <int> },
"Window": { "id": <int> },
"Tabpage": { "id": <int> }
}
}
It then pulls out the id values and stores them in the returned Metadata
struct
so that buffer, window, and tabpage values received from Neovim can be parsed
appropriately.
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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