Struct eversal_lib::model::StationDb
source · pub struct StationDb {Show 15 fields
pub station_id: i64,
pub security: f32,
pub operation_type: String,
pub services: Vec<String>,
pub corporation_id: i32,
pub system_id: i32,
pub constellation_id: i32,
pub region_id: i32,
pub station_name: String,
pub x: f32,
pub y: f32,
pub z: f32,
pub reprocessing_efficiency: f32,
pub reprocessing_stations_take: f32,
pub reprocessing_hangar_flag: i32,
}Fields§
§station_id: i64§security: f32§operation_type: String§services: Vec<String>§corporation_id: i32§system_id: i32§constellation_id: i32§region_id: i32§station_name: String§x: f32§y: f32§z: f32§reprocessing_efficiency: f32§reprocessing_stations_take: f32§reprocessing_hangar_flag: i32Implementations§
source§impl StationDb
impl StationDb
pub async fn get_by_id(station_id: i64) -> DbResult<Option<Self>>
pub async fn count(filter: &StationFilter) -> DbResult<i64>
pub async fn get(filter: &StationFilter) -> DbResult<Vec<Self>>
pub async fn insert(&self) -> DbResult<()>
pub async fn insert_multiple(stations: &Vec<Self>) -> DbResult<()>
Trait Implementations§
source§impl<'de> Deserialize<'de> for StationDb
impl<'de> Deserialize<'de> for StationDb
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 StationDb
impl RefUnwindSafe for StationDb
impl Send for StationDb
impl Sync for StationDb
impl Unpin for StationDb
impl UnwindSafe for StationDb
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
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