pub struct CostHistoryRecord {
pub data: Option<CostData>,
pub version: OffsetDateTime,
}Expand description
A record of the cost’s data at the time it was updated or defined
This provides historical versioning of cost data, allowing the system to track changes to cost definitions over time.
Fields§
§data: Option<CostData>The cost data, or None if the cost was deactivated
version: OffsetDateTimeThe timestamp when this version was created
Trait Implementations§
Source§impl ComposeSchema for CostHistoryRecord
impl ComposeSchema for CostHistoryRecord
Source§impl Debug for CostHistoryRecord
impl Debug for CostHistoryRecord
Source§impl<'de> Deserialize<'de> for CostHistoryRecord
impl<'de> Deserialize<'de> for CostHistoryRecord
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 CostHistoryRecord
impl PartialEq for CostHistoryRecord
Source§impl Serialize for CostHistoryRecord
impl Serialize for CostHistoryRecord
Source§impl ToSchema for CostHistoryRecord
impl ToSchema for CostHistoryRecord
impl StructuralPartialEq for CostHistoryRecord
Auto Trait Implementations§
impl Freeze for CostHistoryRecord
impl RefUnwindSafe for CostHistoryRecord
impl Send for CostHistoryRecord
impl Sync for CostHistoryRecord
impl Unpin for CostHistoryRecord
impl UnwindSafe for CostHistoryRecord
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