pub struct ObservatoryReplay {
pub present: bool,
pub path: String,
pub recording: Option<ObservatoryRecording>,
}Expand description
The recording the repository carries, or that it carries none.
use majordomus_cli::capability::builtin::observatory::{replay_at, ObservatoryReplay, RECORDING};
let dir = tempfile::tempdir().unwrap();
let none: ObservatoryReplay = replay_at(dir.path()).unwrap();
assert!(!none.present && none.recording.is_none());
assert_eq!(none.path, RECORDING);Fields§
§present: boolWhether the repository carries a recording.
path: StringThe file it is read from.
recording: Option<ObservatoryRecording>The recording.
Trait Implementations§
Source§impl Clone for ObservatoryReplay
impl Clone for ObservatoryReplay
Source§fn clone(&self) -> ObservatoryReplay
fn clone(&self) -> ObservatoryReplay
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 ObservatoryReplay
impl Debug for ObservatoryReplay
Source§impl<'de> Deserialize<'de> for ObservatoryReplay
impl<'de> Deserialize<'de> for ObservatoryReplay
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 ObservatoryReplay
impl JsonSchema for ObservatoryReplay
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 ObservatoryReplay
impl PartialEq for ObservatoryReplay
Source§fn eq(&self, other: &ObservatoryReplay) -> bool
fn eq(&self, other: &ObservatoryReplay) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObservatoryReplay
impl Serialize for ObservatoryReplay
impl StructuralPartialEq for ObservatoryReplay
Auto Trait Implementations§
impl Freeze for ObservatoryReplay
impl RefUnwindSafe for ObservatoryReplay
impl Send for ObservatoryReplay
impl Sync for ObservatoryReplay
impl Unpin for ObservatoryReplay
impl UnsafeUnpin for ObservatoryReplay
impl UnwindSafe for ObservatoryReplay
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