pub struct Listing {
pub rank: u64,
pub listing: SignedGenericListing,
pub pricing: SignedListingPricingHint,
pub publisher: GenericRegistryPublisher,
pub freshness: GenericListingReplicaFreshness,
}Expand description
A listing projected into the marketplace with its accompanying pricing hint, publisher, and freshness metadata.
Fields§
§rank: u64§listing: SignedGenericListing§pricing: SignedListingPricingHint§publisher: GenericRegistryPublisher§freshness: GenericListingReplicaFreshnessImplementations§
Source§impl Listing
impl Listing
Sourcepub fn listing_id(&self) -> &str
pub fn listing_id(&self) -> &str
The listing identifier is the primary handle agents reference.
Sourcepub fn price_per_call(&self) -> &MonetaryAmount
pub fn price_per_call(&self) -> &MonetaryAmount
Price advertised per call under this listing.
Sourcepub fn is_admissible_at(&self, now: u64) -> bool
pub fn is_admissible_at(&self, now: u64) -> bool
Returns true only when the underlying listing is Active and the
pricing hint is live at now.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Listing
impl<'de> Deserialize<'de> for Listing
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 StructuralPartialEq for Listing
Auto Trait Implementations§
impl Freeze for Listing
impl RefUnwindSafe for Listing
impl Send for Listing
impl Sync for Listing
impl Unpin for Listing
impl UnsafeUnpin for Listing
impl UnwindSafe for Listing
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