pub struct ObjectSummary {
pub uri: String,
pub id: String,
pub kind: String,
pub identity: String,
pub title: Option<String>,
pub description: Option<String>,
pub path: String,
}Expand description
One object, summarised for a listing.
Fields§
§uri: Stringmajordomus://<kind>/<identity>.
id: StringThe capability id, <kind>.<identity>.
kind: StringThe kind the object was read as.
identity: StringThe identity within the kind.
title: Option<String>The title, when the kind’s title rule found one.
description: Option<String>The one-line description, when the kind holds one.
path: StringRepository-relative source path.
Trait Implementations§
Source§impl Clone for ObjectSummary
impl Clone for ObjectSummary
Source§fn clone(&self) -> ObjectSummary
fn clone(&self) -> ObjectSummary
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 ObjectSummary
impl Debug for ObjectSummary
Source§impl<'de> Deserialize<'de> for ObjectSummary
impl<'de> Deserialize<'de> for ObjectSummary
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 JsonSchema for ObjectSummary
impl JsonSchema for ObjectSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ObjectSummary
impl RefUnwindSafe for ObjectSummary
impl Send for ObjectSummary
impl Sync for ObjectSummary
impl Unpin for ObjectSummary
impl UnsafeUnpin for ObjectSummary
impl UnwindSafe for ObjectSummary
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