pub struct UnitRef {
pub issuer_did: String,
pub resource_class: String,
}Expand description
A resource unit reference — the unit names its issuer (INV-1 from the ledger crate). Carried in the protocol so a tariff quote can name the exact credit unit that will be issued.
Fields§
§issuer_did: StringThe issuer’s DID (the liability holder for this unit).
resource_class: Stringe.g. "gpu.h100.seconds".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitRef
impl<'de> Deserialize<'de> for UnitRef
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
impl Eq for UnitRef
impl StructuralPartialEq for UnitRef
Auto Trait Implementations§
impl Freeze for UnitRef
impl RefUnwindSafe for UnitRef
impl Send for UnitRef
impl Sync for UnitRef
impl Unpin for UnitRef
impl UnsafeUnpin for UnitRef
impl UnwindSafe for UnitRef
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