#[non_exhaustive]pub struct EventSetting<E> {
pub event: Option<E>,
pub altitude_m: Option<f64>,
pub delay_s: Option<f64>,
}Expand description
An event, a height for the events that need one, and a delay after it: when a device deploys
or a stage separates. Each is None where the file does not say.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event: Option<E>The event.
altitude_m: Option<f64>The height, m: above the ground for a deployment (measured; see the module docs).
delay_s: Option<f64>Seconds after the event, s.
Trait Implementations§
Source§impl<E: Clone> Clone for EventSetting<E>
impl<E: Clone> Clone for EventSetting<E>
Source§fn clone(&self) -> EventSetting<E>
fn clone(&self) -> EventSetting<E>
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<E: Debug> Debug for EventSetting<E>
impl<E: Debug> Debug for EventSetting<E>
Source§impl<'de, E> Deserialize<'de> for EventSetting<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for EventSetting<E>where
E: Deserialize<'de>,
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<E> JsonSchema for EventSetting<E>where
E: JsonSchema,
impl<E> JsonSchema for EventSetting<E>where
E: JsonSchema,
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<E: PartialEq> PartialEq for EventSetting<E>
impl<E: PartialEq> PartialEq for EventSetting<E>
Source§fn eq(&self, other: &EventSetting<E>) -> bool
fn eq(&self, other: &EventSetting<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<E> Serialize for EventSetting<E>where
E: Serialize,
impl<E> Serialize for EventSetting<E>where
E: Serialize,
impl<E: PartialEq> StructuralPartialEq for EventSetting<E>
Auto Trait Implementations§
impl<E> Freeze for EventSetting<E>where
E: Freeze,
impl<E> RefUnwindSafe for EventSetting<E>where
E: RefUnwindSafe,
impl<E> Send for EventSetting<E>where
E: Send,
impl<E> Sync for EventSetting<E>where
E: Sync,
impl<E> Unpin for EventSetting<E>where
E: Unpin,
impl<E> UnsafeUnpin for EventSetting<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for EventSetting<E>where
E: UnwindSafe,
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