pub struct RecordingManifest {
pub sources: Vec<String>,
pub window: Option<RecordingWindow>,
pub removed: Vec<String>,
}Expand description
What a recording is a record of: the capabilities read, the window of events it holds, and what was removed from what they answered, with the reason.
use majordomus_cli::capability::builtin::observatory::RecordingManifest;
let m: RecordingManifest = serde_json::from_value(serde_json::json!({
"sources": ["mesh.events"], "removed": ["event bodies"],
})).unwrap();
assert!(m.window.is_none(), "a recording that holds no event has no window");Fields§
§sources: Vec<String>The capabilities whose answers the recorded scenes were projected from.
window: Option<RecordingWindow>The first and last event the recording holds, by time and by logical clock; absent when it holds none.
removed: Vec<String>Every kind of thing removed before publication, and why.
Trait Implementations§
Source§impl Clone for RecordingManifest
impl Clone for RecordingManifest
Source§fn clone(&self) -> RecordingManifest
fn clone(&self) -> RecordingManifest
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 RecordingManifest
impl Debug for RecordingManifest
Source§impl<'de> Deserialize<'de> for RecordingManifest
impl<'de> Deserialize<'de> for RecordingManifest
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 RecordingManifest
impl JsonSchema for RecordingManifest
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 moreSource§impl PartialEq for RecordingManifest
impl PartialEq for RecordingManifest
Source§fn eq(&self, other: &RecordingManifest) -> bool
fn eq(&self, other: &RecordingManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RecordingManifest
impl Serialize for RecordingManifest
impl StructuralPartialEq for RecordingManifest
Auto Trait Implementations§
impl Freeze for RecordingManifest
impl RefUnwindSafe for RecordingManifest
impl Send for RecordingManifest
impl Sync for RecordingManifest
impl Unpin for RecordingManifest
impl UnsafeUnpin for RecordingManifest
impl UnwindSafe for RecordingManifest
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