Struct eversal_lib::model::CorporationDb
source · pub struct CorporationDb {Show 16 fields
pub corporation_id: i32,
pub corporation_name: String,
pub size: String,
pub extent: String,
pub system_id: Option<i32>,
pub friend_id: Option<i32>,
pub enemy_id: Option<i32>,
pub public_shares: i32,
pub initial_price: i32,
pub min_security: f32,
pub faction_id: Option<i32>,
pub size_factor: Option<f32>,
pub station_count: Option<i32>,
pub station_system_count: Option<i32>,
pub description: String,
pub icon_id: Option<i32>,
}Fields§
§corporation_id: i32§corporation_name: String§size: String§extent: String§system_id: Option<i32>§friend_id: Option<i32>§enemy_id: Option<i32>§initial_price: i32§min_security: f32§faction_id: Option<i32>§size_factor: Option<f32>§station_count: Option<i32>§station_system_count: Option<i32>§description: String§icon_id: Option<i32>Implementations§
source§impl CorporationDb
impl CorporationDb
pub async fn get_by_id(corporation_id: i32) -> DbResult<Self>
pub async fn count(filter: &CorporationFilter) -> DbResult<i64>
pub async fn get_multiple(filter: &CorporationFilter) -> DbResult<Vec<Self>>
pub async fn insert(&self) -> DbResult<()>
pub async fn insert_multiple(corporations: &Vec<Self>) -> DbResult<()>
pub async fn update(&self) -> DbResult<()>
pub async fn delete(corporation_id: i32) -> DbResult<()>
Trait Implementations§
source§impl Debug for CorporationDb
impl Debug for CorporationDb
source§impl<'de> Deserialize<'de> for CorporationDb
impl<'de> Deserialize<'de> for CorporationDb
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<'a, R: Row> FromRow<'a, R> for CorporationDb
impl<'a, R: Row> FromRow<'a, R> for CorporationDb
Auto Trait Implementations§
impl Freeze for CorporationDb
impl RefUnwindSafe for CorporationDb
impl Send for CorporationDb
impl Sync for CorporationDb
impl Unpin for CorporationDb
impl UnwindSafe for CorporationDb
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