Struct svc_storage::grpc::server::flight_plan::Data
source · 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§
source§impl Data
impl Data
sourcepub fn weather_conditions(&self) -> &str
pub fn weather_conditions(&self) -> &str
Returns the value of weather_conditions
, or the default value if weather_conditions
is unset.
sourcepub fn origin_vertiport_id(&self) -> &str
pub fn origin_vertiport_id(&self) -> &str
Returns the value of origin_vertiport_id
, or the default value if origin_vertiport_id
is unset.
sourcepub fn target_vertiport_id(&self) -> &str
pub fn target_vertiport_id(&self) -> &str
Returns the value of target_vertiport_id
, or the default value if target_vertiport_id
is unset.
sourcepub fn approved_by(&self) -> &str
pub fn approved_by(&self) -> &str
Returns the value of approved_by
, or the default value if approved_by
is unset.
sourcepub fn flight_status(&self) -> FlightStatus
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.
sourcepub fn set_flight_status(&mut self, value: FlightStatus)
pub fn set_flight_status(&mut self, value: FlightStatus)
Sets flight_status
to the provided enum value.
sourcepub fn flight_priority(&self) -> FlightPriority
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.
sourcepub fn set_flight_priority(&mut self, value: FlightPriority)
pub fn set_flight_priority(&mut self, value: FlightPriority)
Sets flight_priority
to the provided enum value.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Data
impl<'de> Deserialize<'de> for Data
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 GrpcDataObjectType for Data
impl GrpcDataObjectType for Data
source§impl Message for Data
impl Message for Data
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for Data
impl PartialEq for Data
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> 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<T> CloneAny for T
impl<T> CloneAny for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request