pub struct HostDeliveryQuery { /* private fields */ }Expand description
One page of a question about what the ledger holds.
Implementations§
Source§impl HostDeliveryQuery
impl HostDeliveryQuery
pub fn new() -> Self
pub fn in_ceremony(self, ceremony_id: CeremonyId) -> Self
pub fn in_state(self, state: HostDeliveryStateKind) -> Self
pub fn to(self, target: HostDeliveryTargetFilter) -> Self
pub const fn of_size(self, limit: HostDeliveryPageLimit) -> Self
Sourcepub fn after(self, cursor: HostDeliveryId) -> Self
pub fn after(self, cursor: HostDeliveryId) -> Self
Continue after the last identifier of the previous page.
pub const fn ceremony_id(&self) -> Option<&CeremonyId>
pub const fn state(&self) -> Option<HostDeliveryStateKind>
pub const fn target(&self) -> &HostDeliveryTargetFilter
pub const fn limit(&self) -> HostDeliveryPageLimit
pub const fn cursor(&self) -> Option<&HostDeliveryId>
Sourcepub fn admits(&self, record: &HostDeliveryRecord) -> bool
pub fn admits(&self, record: &HostDeliveryRecord) -> bool
Whether a record belongs on this page, cursor aside.
Trait Implementations§
Source§impl Clone for HostDeliveryQuery
impl Clone for HostDeliveryQuery
Source§impl Debug for HostDeliveryQuery
impl Debug for HostDeliveryQuery
Source§impl Default for HostDeliveryQuery
impl Default for HostDeliveryQuery
impl Eq for HostDeliveryQuery
Source§impl PartialEq for HostDeliveryQuery
impl PartialEq for HostDeliveryQuery
impl StructuralPartialEq for HostDeliveryQuery
Auto Trait Implementations§
impl Freeze for HostDeliveryQuery
impl RefUnwindSafe for HostDeliveryQuery
impl Send for HostDeliveryQuery
impl Sync for HostDeliveryQuery
impl Unpin for HostDeliveryQuery
impl UnsafeUnpin for HostDeliveryQuery
impl UnwindSafe for HostDeliveryQuery
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