pub struct CostRecord {
pub bidder_id: BidderId,
pub cost_id: CostId,
pub group: Option<Group>,
pub data: Option<CostData>,
pub version: OffsetDateTime,
}Expand description
A full description of a cost
A CostRecord combines all the information needed to define a cost:
- Who owns it (bidder_id)
- Which auths it applies to (group)
- The utility function (data)
Fields§
§bidder_id: BidderIdThe responsible bidder’s id
cost_id: CostIdA unique id for the cost
group: Option<Group>The group associated to the cost. Because it is not always required, some endpoints may omit its definition.
data: Option<CostData>The utility for the cost
version: OffsetDateTimeThe “last-modified-or-created” time as recorded by the system
Implementations§
Source§impl CostRecord
impl CostRecord
Trait Implementations§
Source§impl ComposeSchema for CostRecord
impl ComposeSchema for CostRecord
Source§impl Debug for CostRecord
impl Debug for CostRecord
Source§impl<'de> Deserialize<'de> for CostRecord
impl<'de> Deserialize<'de> for CostRecord
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 PartialEq for CostRecord
impl PartialEq for CostRecord
Source§impl Serialize for CostRecord
impl Serialize for CostRecord
Source§impl ToSchema for CostRecord
impl ToSchema for CostRecord
impl StructuralPartialEq for CostRecord
Auto Trait Implementations§
impl Freeze for CostRecord
impl RefUnwindSafe for CostRecord
impl Send for CostRecord
impl Sync for CostRecord
impl Unpin for CostRecord
impl UnwindSafe for CostRecord
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> 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