pub struct Data {
pub vehicle_model_id: String,
pub serial_number: String,
pub registration_number: String,
pub description: Option<String>,
pub asset_group_id: Option<String>,
pub schedule: Option<String>,
pub hangar_id: Option<String>,
pub hangar_bay_id: Option<String>,
pub last_maintenance: Option<Timestamp>,
pub next_maintenance: Option<Timestamp>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
}
Expand description
Data struct with vehicle data
Fields§
§vehicle_model_id: String
vehicle_model_id UUID v4, can be used to collect additional vehicle_model information
serial_number: String
the vehicle’s unique serial_number given at the factory
registration_number: String
the vehicle’s unique registration number provided by the government
description: Option<String>
optional additional description of the vehicle
asset_group_id: Option<String>
optional asset_group_id UUID v4, can be used to collect all assets from the same group
schedule: Option<String>
optional RRULE data string to indicate the vehicle’s available days and hours
hangar_id: Option<String>
optional id UUID v4 of the hangar (vertiport) this aircraft is assigned to
hangar_bay_id: Option<String>
optional id UUID v4 of the hangar bay (vertipad) this aircraft is assigned to
last_maintenance: Option<Timestamp>
optional date of vehicle’s last maintenance
next_maintenance: Option<Timestamp>
optional date of vehicle’s next planned maintenance
created_at: Option<Timestamp>
timestamp of the date and time the vehicle has been created
updated_at: Option<Timestamp>
timestamp of the last update action performed on the data
Implementations§
source§impl Data
impl Data
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn asset_group_id(&self) -> &str
pub fn asset_group_id(&self) -> &str
Returns the value of asset_group_id
, or the default value if asset_group_id
is unset.
sourcepub fn schedule(&self) -> &str
pub fn schedule(&self) -> &str
Returns the value of schedule
, or the default value if schedule
is unset.
sourcepub fn hangar_id(&self) -> &str
pub fn hangar_id(&self) -> &str
Returns the value of hangar_id
, or the default value if hangar_id
is unset.
sourcepub fn hangar_bay_id(&self) -> &str
pub fn hangar_bay_id(&self) -> &str
Returns the value of hangar_bay_id
, or the default value if hangar_bay_id
is unset.
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