pub struct TimelineForkNotice {
pub parent_timeline: u64,
pub new_timeline: u64,
pub fork_lsn: u64,
pub promoted_replica_id: Option<String>,
pub created_at_unix_ms: Option<u64>,
}Fields§
§parent_timeline: u64§new_timeline: u64§fork_lsn: u64§promoted_replica_id: Option<String>§created_at_unix_ms: Option<u64>Implementations§
Source§impl TimelineForkNotice
impl TimelineForkNotice
pub fn encode_json(&self) -> Vec<u8> ⓘ
pub fn decode_json(bytes: &[u8]) -> Result<Self, ReplicationPayloadError>
pub fn decode_legacy_rejoin_plan( bytes: &[u8], ) -> Result<Self, ReplicationPayloadError>
Trait Implementations§
Source§impl Clone for TimelineForkNotice
impl Clone for TimelineForkNotice
Source§fn clone(&self) -> TimelineForkNotice
fn clone(&self) -> TimelineForkNotice
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 TimelineForkNotice
impl Debug for TimelineForkNotice
impl Eq for TimelineForkNotice
Source§impl PartialEq for TimelineForkNotice
impl PartialEq for TimelineForkNotice
Source§fn eq(&self, other: &TimelineForkNotice) -> bool
fn eq(&self, other: &TimelineForkNotice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimelineForkNotice
Auto Trait Implementations§
impl Freeze for TimelineForkNotice
impl RefUnwindSafe for TimelineForkNotice
impl Send for TimelineForkNotice
impl Sync for TimelineForkNotice
impl Unpin for TimelineForkNotice
impl UnsafeUnpin for TimelineForkNotice
impl UnwindSafe for TimelineForkNotice
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