pub struct Community {
pub id: CommunityId,
pub label: String,
pub members: Vec<NodeId>,
pub central_nodes: Vec<NodeId>,
pub repositories: Vec<RepoId>,
pub services: Vec<NodeId>,
pub inbound_contracts: Vec<NodeId>,
pub outbound_contracts: Vec<NodeId>,
pub metrics: CommunityMetrics,
pub label_evidence: Vec<CommunityLabelEvidence>,
pub limitations: Vec<String>,
}Expand description
One versioned and explainable graph community.
Fields§
§id: CommunityIdStable content-derived community identity.
label: StringDeterministic structural label.
members: Vec<NodeId>Sorted member node identifiers.
central_nodes: Vec<NodeId>Central nodes sorted by descending centrality and stable identity.
repositories: Vec<RepoId>Repository identities represented by members.
services: Vec<NodeId>Service node identities represented by members.
inbound_contracts: Vec<NodeId>Contract nodes receiving edges from outside the community.
outbound_contracts: Vec<NodeId>Contract nodes sending edges outside the community.
metrics: CommunityMetricsQuantitative graph metrics.
label_evidence: Vec<CommunityLabelEvidence>Structural evidence used to derive the label.
limitations: Vec<String>Explicit limitations or incomplete inputs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Community
impl<'de> Deserialize<'de> for Community
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
Source§impl JsonSchema for Community
impl JsonSchema for Community
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Community
Auto Trait Implementations§
impl Freeze for Community
impl RefUnwindSafe for Community
impl Send for Community
impl Sync for Community
impl Unpin for Community
impl UnsafeUnpin for Community
impl UnwindSafe for Community
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