pub struct Data {
Show 20 fields pub pilot_id: String, pub vehicle_id: String, pub path: Option<GeoLineString>, pub weather_conditions: Option<String>, pub origin_vertiport_id: Option<String>, pub origin_vertipad_id: String, pub origin_timeslot_start: Option<Timestamp>, pub origin_timeslot_end: Option<Timestamp>, pub target_vertiport_id: Option<String>, pub target_vertipad_id: String, pub target_timeslot_start: Option<Timestamp>, pub target_timeslot_end: Option<Timestamp>, pub actual_departure_time: Option<Timestamp>, pub actual_arrival_time: Option<Timestamp>, pub flight_release_approval: Option<Timestamp>, pub flight_plan_submitted: Option<Timestamp>, pub carrier_ack: Option<Timestamp>, pub approved_by: Option<String>, pub flight_status: i32, pub flight_priority: i32,
}
Expand description

Data struct with flight_plan data

Fields§

§pilot_id: String

pilot_id UUID v4

§vehicle_id: String

vehicle_id UUID v4

§path: Option<GeoLineString>

the path of the flight

§weather_conditions: Option<String>

weather_conditions

§origin_vertiport_id: Option<String>

origin_vertiport_id UUID v4, only listed for get results, not needed for creation (known through pad_id)

§origin_vertipad_id: String

origin_vertipad_id UUID v4

§origin_timeslot_start: Option<Timestamp>

Start of the departure vertipad timeslot

§origin_timeslot_end: Option<Timestamp>

End of the departure vertipad timeslot

§target_vertiport_id: Option<String>

target_vertiport_id UUID v4, only listed for get results, not needed for creation (known through pad_id)

§target_vertipad_id: String

target_vertipad_id UUID v4

§target_timeslot_start: Option<Timestamp>

Start of the departure vertipad timeslot

§target_timeslot_end: Option<Timestamp>

End of the departure vertipad timeslot

§actual_departure_time: Option<Timestamp>

actual_departure_time

§actual_arrival_time: Option<Timestamp>

actual_arrival_time

§flight_release_approval: Option<Timestamp>

flight_release_approval date and time

§flight_plan_submitted: Option<Timestamp>

flight_plan_submitted date and time

§carrier_ack: Option<Timestamp>

aircraft/pilot acknowledgement of orders pre-flight

§approved_by: Option<String>

approved_by UUID v4

§flight_status: i32

flight_status

§flight_priority: i32

flightPriority

Implementations§

§

impl Data

pub fn weather_conditions(&self) -> &str

Returns the value of weather_conditions, or the default value if weather_conditions is unset.

pub fn origin_vertiport_id(&self) -> &str

Returns the value of origin_vertiport_id, or the default value if origin_vertiport_id is unset.

pub fn target_vertiport_id(&self) -> &str

Returns the value of target_vertiport_id, or the default value if target_vertiport_id is unset.

pub fn approved_by(&self) -> &str

Returns the value of approved_by, or the default value if approved_by is unset.

pub fn flight_status(&self) -> FlightStatus

Returns the enum value of flight_status, or the default if the field is set to an invalid enum value.

pub fn set_flight_status(&mut self, value: FlightStatus)

Sets flight_status to the provided enum value.

pub fn flight_priority(&self) -> FlightPriority

Returns the enum value of flight_priority, or the default if the field is set to an invalid enum value.

pub fn set_flight_priority(&mut self, value: FlightPriority)

Sets flight_priority to the provided enum value.

Trait Implementations§

§

impl Clone for Data

§

fn clone(&self) -> Data

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Data

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Data

§

fn default() -> Data

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Data

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Data, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl IntoParams for Data

§

fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn> ) -> Vec<Parameter>

Provide Vec of [openapi::path::Parameter]s to caller. The result is used in utoipa-gen library to provide OpenAPI parameter information for the endpoint using the parameters.
§

impl Message for Data

§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
§

impl PartialEq for Data

§

fn eq(&self, other: &Data) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Serialize for Data

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'__s> ToSchema<'__s> for Data

§

fn schema() -> (&'__s str, RefOr<Schema>)

Return a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.
§

fn aliases() -> Vec<(&'__s str, Schema)>

Optional set of alias schemas for the ToSchema::schema. Read more
§

impl StructuralPartialEq for Data

Auto Trait Implementations§

§

impl RefUnwindSafe for Data

§

impl Send for Data

§

impl Sync for Data

§

impl Unpin for Data

§

impl UnwindSafe for Data

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer ) -> Result<(), ErrorImpl>

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,