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§impl Debug for TimelineForkNotice
impl Debug for TimelineForkNotice
impl Eq for TimelineForkNotice
Source§impl PartialEq for TimelineForkNotice
impl PartialEq for TimelineForkNotice
impl StructuralPartialEq for TimelineForkNotice
Auto Trait Implementations§
impl Forget for TimelineForkNotice
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