pub struct SubmitBidRequest {
Show 15 fields pub bid_id: BidId, pub timestamp: BlockTime, pub job_offer_id: JobOfferId, pub proposed_timeframe: BlockTime, pub proposed_payment: Balance, pub reputation_stake: Balance, pub cspr_stake: Option<Balance>, pub onboard: bool, pub worker: Address, pub worker_kyced: bool, pub worker_is_va: bool, pub job_poster: Address, pub max_budget: Balance, pub auction_state: AuctionState, pub va_can_bid_on_public_auction: bool,
}
Expand description

Data required to create a Bid.

Fields§

§bid_id: BidId

New bid id.

§timestamp: BlockTime

Submission creation time.

§job_offer_id: JobOfferId

Id of the offer the new bid refers to.

§proposed_timeframe: BlockTime

Time to complete the Job.

§proposed_payment: Balance

Proposed payment for completing the Job.

§reputation_stake: Balance

Bid reputation stake.

§cspr_stake: Option<Balance>

Bid CSPR stake - for an External Worker.

§onboard: bool

Should be onborded when the Job is done.

§worker: Address

Worker address.

§worker_kyced: bool

If the Worker passed the KYC process.

§worker_is_va: bool

If the Worker is a VA.

§job_poster: Address

JobPoster address.

§max_budget: Balance

The Job max budget

§auction_state: AuctionState

Auction state

§va_can_bid_on_public_auction: bool

Is allowed a VA bid on public auction (not an External Worker only).

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.