pub struct CameraView {Show 20 fields
pub id: String,
pub name: String,
pub ingest: String,
pub state: CameraState,
pub state_text: String,
pub tone: Tone,
pub on: bool,
pub agent: CameraAgent,
pub stage: StageView,
pub notice: Option<NoticeView>,
pub actions: CameraActions,
pub decisions: Vec<DecisionCard>,
pub nothing_waiting: String,
pub watches: Vec<WatchView>,
pub budget: BudgetView,
pub tracks: Vec<TrackRow>,
pub tracks_note: String,
pub tracks_short_note: Option<String>,
pub zones: Vec<ZoneView>,
pub sources: Vec<SourceTile>,
}Expand description
GET /surface/cameras/{camera} answer: one camera, watched large (board choice C1).
Fields§
§id: StringThe camera’s id.
name: String“Line 2 camera”.
ingest: String“RTSP · 1920 × 1080 · on the line 2 server”.
state: CameraStateThe state.
state_text: String“Live”, “Saving frames”, “Paused until midnight”, “Can’t reach the camera”, “Camera off”.
tone: ToneThe pill’s colour.
on: boolThe switch: on, or off (board choice C2).
agent: CameraAgentThe agent that watches it.
stage: StageViewThe picture.
notice: Option<NoticeView>The banner over the picture, when there is something to warn about.
actions: CameraActionsWhat the person may do here now.
decisions: Vec<DecisionCard>The agent’s open decisions on this session, such as the held line stop (board choice C13).
nothing_waiting: String“Nothing is waiting for you.”
watches: Vec<WatchView>“Watching for”.
budget: BudgetView“Frame budget”.
tracks: Vec<TrackRow>“Tracks now”.
tracks_note: StringThe words under the tracks: “Tracks are anonymous and start again when the camera does.”
tracks_short_note: Option<String>The phone’s words under the budget while the camera is off: “Tracks start again when the camera is back on.”
zones: Vec<ZoneView>The zones a person may edit, in the camera’s pixels.
sources: Vec<SourceTile>“Sources”: every camera, this one’s tile following its state (board choice C15).
Trait Implementations§
Source§impl Clone for CameraView
impl Clone for CameraView
Source§impl Debug for CameraView
impl Debug for CameraView
Source§impl<'de> Deserialize<'de> for CameraView
impl<'de> Deserialize<'de> for CameraView
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>,
Source§impl JsonSchema for CameraView
impl JsonSchema for CameraView
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CameraView
impl PartialEq for CameraView
Source§impl Serialize for CameraView
impl Serialize for CameraView
impl StructuralPartialEq for CameraView
Auto Trait Implementations§
impl Forget for CameraView
impl Freeze for CameraViewwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<CameraRegion>: Freeze,
PhantomData<ZoneView>: Freeze,
PhantomData<TrailView>: Freeze,
PhantomData<DecisionCard>: Freeze,
PhantomData<WatchView>: Freeze,
PhantomData<MeterView>: Freeze,
PhantomData<StepView>: Freeze,
PhantomData<BudgetRow>: Freeze,
PhantomData<TrackRow>: Freeze,
PhantomData<SourceTile>: Freeze,
impl Move for CameraView
impl RefUnwindSafe for CameraView
impl Send for CameraView
impl Sync for CameraView
impl Unpin for CameraView
impl UnsafeUnpin for CameraViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<CameraRegion>: UnsafeUnpin,
PhantomData<ZoneView>: UnsafeUnpin,
PhantomData<TrailView>: UnsafeUnpin,
PhantomData<DecisionCard>: UnsafeUnpin,
PhantomData<WatchView>: UnsafeUnpin,
PhantomData<MeterView>: UnsafeUnpin,
PhantomData<StepView>: UnsafeUnpin,
PhantomData<BudgetRow>: UnsafeUnpin,
PhantomData<TrackRow>: UnsafeUnpin,
PhantomData<SourceTile>: UnsafeUnpin,
impl UnwindSafe for CameraViewwhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more