pub struct CouncilJournalLease { /* private fields */ }Expand description
An exclusive council-consumer lease. Its identity is issued by the store.
Implementations§
Source§impl CouncilJournalLease
impl CouncilJournalLease
pub fn new( consumer: CouncilJournalConsumer, id: CouncilJournalLeaseId, acknowledged_through: Option<CouncilJournalPosition>, expires_at: OffsetDateTime, ) -> Self
pub fn consumer(&self) -> &CouncilJournalConsumer
pub fn id(&self) -> &CouncilJournalLeaseId
pub fn acknowledged_through(&self) -> Option<CouncilJournalPosition>
pub fn expires_at(&self) -> OffsetDateTime
Trait Implementations§
Source§impl Clone for CouncilJournalLease
impl Clone for CouncilJournalLease
Source§fn clone(&self) -> CouncilJournalLease
fn clone(&self) -> CouncilJournalLease
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 CouncilJournalLease
impl Debug for CouncilJournalLease
Source§impl<'de> Deserialize<'de> for CouncilJournalLease
impl<'de> Deserialize<'de> for CouncilJournalLease
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 CouncilJournalLease
Source§impl PartialEq for CouncilJournalLease
impl PartialEq for CouncilJournalLease
Source§impl Serialize for CouncilJournalLease
impl Serialize for CouncilJournalLease
impl StructuralPartialEq for CouncilJournalLease
Auto Trait Implementations§
impl Freeze for CouncilJournalLease
impl RefUnwindSafe for CouncilJournalLease
impl Send for CouncilJournalLease
impl Sync for CouncilJournalLease
impl Unpin for CouncilJournalLease
impl UnsafeUnpin for CouncilJournalLease
impl UnwindSafe for CouncilJournalLease
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