pub struct CameraCreate {Show 25 fields
pub id: Option<String>,
pub name: String,
pub site_id: Option<String>,
pub vendor: String,
pub model: Option<String>,
pub address: Option<String>,
pub rtsp_port: Option<i64>,
pub username: Option<String>,
pub password: Option<String>,
pub main_stream_url: Option<String>,
pub sub_stream_url: Option<String>,
pub record_stream: Option<String>,
pub capabilities: Option<Value>,
pub record_enabled: Option<bool>,
pub segment_seconds: Option<i64>,
pub retention_hours: Option<i64>,
pub storage_quota_bytes: Option<i64>,
pub record_audio: Option<bool>,
pub record_mode: Option<String>,
pub pre_roll_seconds: Option<i64>,
pub post_roll_seconds: Option<i64>,
pub mirror_enabled: Option<bool>,
pub anr_enabled: Option<bool>,
pub anr_replay_url_template: Option<String>,
pub enabled: Option<bool>,
}Expand description
Payload to create a camera. id may be omitted (slug auto-derived from name).
Fields§
§id: Option<String>§name: String§site_id: Option<String>§vendor: String§model: Option<String>§address: Option<String>§rtsp_port: Option<i64>§username: Option<String>§password: Option<String>§main_stream_url: Option<String>§sub_stream_url: Option<String>§record_stream: Option<String>§capabilities: Option<Value>§record_enabled: Option<bool>§segment_seconds: Option<i64>§retention_hours: Option<i64>§storage_quota_bytes: Option<i64>§record_audio: Option<bool>§record_mode: Option<String>§pre_roll_seconds: Option<i64>§post_roll_seconds: Option<i64>§mirror_enabled: Option<bool>§anr_enabled: Option<bool>§anr_replay_url_template: Option<String>§enabled: Option<bool>Trait Implementations§
Source§impl Debug for CameraCreate
impl Debug for CameraCreate
Source§impl<'de> Deserialize<'de> for CameraCreate
impl<'de> Deserialize<'de> for CameraCreate
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
Auto Trait Implementations§
impl Freeze for CameraCreate
impl RefUnwindSafe for CameraCreate
impl Send for CameraCreate
impl Sync for CameraCreate
impl Unpin for CameraCreate
impl UnsafeUnpin for CameraCreate
impl UnwindSafe for CameraCreate
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
Converts
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>
Converts
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