pub struct ObjectView {
pub uri: String,
pub kind: String,
pub identity: String,
pub title: Option<String>,
pub description: Option<String>,
pub path: String,
pub section: Option<String>,
pub source_class: String,
pub bytes: u64,
pub tags: Vec<String>,
}Expand description
One object of the index, without its content.
Fields§
§uri: Stringmajordomus://<kind>/<identity>.
kind: StringThe kind.
identity: StringThe identity within the kind.
title: Option<String>The title, when the kind has one.
description: Option<String>The one-line description, when the kind has one.
path: StringRepository-relative source path.
section: Option<String>The manifest section, when the path falls under one.
source_class: StringThe sources.yaml class that discovered it.
bytes: u64Size in bytes.
Declared tags.
Trait Implementations§
Source§impl Clone for ObjectView
impl Clone for ObjectView
Source§fn clone(&self) -> ObjectView
fn clone(&self) -> ObjectView
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 ObjectView
impl Debug for ObjectView
Auto Trait Implementations§
impl Freeze for ObjectView
impl RefUnwindSafe for ObjectView
impl Send for ObjectView
impl Sync for ObjectView
impl Unpin for ObjectView
impl UnsafeUnpin for ObjectView
impl UnwindSafe for ObjectView
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