pub struct SpecimenService { /* private fields */ }Implementations§
Source§impl SpecimenService
impl SpecimenService
pub fn new(specimen_repository: Arc<dyn SpecimenRepositoryInterface>) -> Self
Trait Implementations§
Source§impl SpecimenServiceInterface for SpecimenService
impl SpecimenServiceInterface for SpecimenService
fn generate_and_save_specimen( &self, owner_user: &User, species_data: Arc<SpeciesData>, ) -> GameResult<Specimen>
fn process_catch( &self, user: &User, species_data: Arc<SpeciesData>, ) -> GameResult<Specimen>
Auto Trait Implementations§
impl Freeze for SpecimenService
impl !RefUnwindSafe for SpecimenService
impl Send for SpecimenService
impl Sync for SpecimenService
impl Unpin for SpecimenService
impl !UnwindSafe for SpecimenService
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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more