pub struct BoundaryProposal {
pub community_id: u32,
pub stable_snapshots: u32,
pub node_ids: Vec<String>,
}Expand description
A proposed boundary derived from consecutive-snapshot community stability.
§Examples
use sdivi_snapshot::boundary_inference::BoundaryProposal;
let proposal = BoundaryProposal {
community_id: 0,
stable_snapshots: 3,
node_ids: vec!["src/lib.rs".to_string()],
};
assert_eq!(proposal.community_id, 0);Fields§
§community_id: u32The community ID (from the most recent partition).
stable_snapshots: u32Number of consecutive snapshots this community has been stable.
node_ids: Vec<String>Node IDs (paths) belonging to this community in the most recent partition.
Trait Implementations§
Source§impl Clone for BoundaryProposal
impl Clone for BoundaryProposal
Source§fn clone(&self) -> BoundaryProposal
fn clone(&self) -> BoundaryProposal
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 BoundaryProposal
impl Debug for BoundaryProposal
Source§impl<'de> Deserialize<'de> for BoundaryProposal
impl<'de> Deserialize<'de> for BoundaryProposal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoundaryProposal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoundaryProposal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BoundaryProposal
impl PartialEq for BoundaryProposal
Source§fn eq(&self, other: &BoundaryProposal) -> bool
fn eq(&self, other: &BoundaryProposal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BoundaryProposal
impl Serialize for BoundaryProposal
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BoundaryProposal
Auto Trait Implementations§
impl Freeze for BoundaryProposal
impl RefUnwindSafe for BoundaryProposal
impl Send for BoundaryProposal
impl Sync for BoundaryProposal
impl Unpin for BoundaryProposal
impl UnsafeUnpin for BoundaryProposal
impl UnwindSafe for BoundaryProposal
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