Struct vit_servicing_station_tests::common::db::DbInserter
source · pub struct DbInserter<'a> {
connection: &'a DbConnection,
}
Fields§
§connection: &'a DbConnection
Implementations§
source§impl<'a> DbInserter<'a>
impl<'a> DbInserter<'a>
pub fn new(connection: &'a DbConnection) -> Self
pub fn insert_token( &self, token_data: &ApiTokenData ) -> Result<(), DbInserterError>
pub fn insert_tokens( &self, tokens_data: &[ApiTokenData] ) -> Result<(), DbInserterError>
pub fn insert_proposals( &self, proposals: &[FullProposalInfo] ) -> Result<(), DbInserterError>
pub fn insert_funds(&self, funds: &[Fund]) -> Result<(), DbInserterError>
pub fn insert_vote_plans(&self, funds: &[Fund]) -> Result<(), DbInserterError>
pub fn insert_challenges( &self, challenges: &[Challenge] ) -> Result<(), DbInserterError>
pub fn insert_advisor_reviews( &self, reviews: &[AdvisorReview] ) -> Result<(), DbInserterError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DbInserter<'a>
impl<'a> !Send for DbInserter<'a>
impl<'a> !Sync for DbInserter<'a>
impl<'a> Unpin for DbInserter<'a>
impl<'a> !UnwindSafe for DbInserter<'a>
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