pub struct ExternalityProfile {
pub dimensions: BTreeMap<ResourceDim, OpaqueSignedClaim>,
}Expand description
One agent’s claims about the externalities they would impose if awarded a given auction. Each claim is signed by a trusted oracle; the hub verifies signatures before the VCG path consumes them.
Profiles are opaque to the SDK — clients construct them from raw signed-claim bytes obtained out-of-band from an oracle service. The hub deserializes them via the same struct shape.
Fields§
§dimensions: BTreeMap<ResourceDim, OpaqueSignedClaim>Map from dimension to the signed claim for that dimension.
Trait Implementations§
Source§impl Clone for ExternalityProfile
impl Clone for ExternalityProfile
Source§fn clone(&self) -> ExternalityProfile
fn clone(&self) -> ExternalityProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalityProfile
impl Debug for ExternalityProfile
Source§impl Default for ExternalityProfile
impl Default for ExternalityProfile
Source§fn default() -> ExternalityProfile
fn default() -> ExternalityProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalityProfile
impl<'de> Deserialize<'de> for ExternalityProfile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalityProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalityProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExternalityProfile
impl PartialEq for ExternalityProfile
Source§fn eq(&self, other: &ExternalityProfile) -> bool
fn eq(&self, other: &ExternalityProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExternalityProfile
impl Serialize for ExternalityProfile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExternalityProfile
Auto Trait Implementations§
impl Freeze for ExternalityProfile
impl RefUnwindSafe for ExternalityProfile
impl Send for ExternalityProfile
impl Sync for ExternalityProfile
impl Unpin for ExternalityProfile
impl UnsafeUnpin for ExternalityProfile
impl UnwindSafe for ExternalityProfile
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