1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//! Contact groups

use {object};
use super::Contact;

/// Type used for group keys.
///
/// Being defined as equal to the object::KeyType should keep it roughly large
/// enough to handle any number of objects since the number of groups is always
/// less than the number of individual objects.
pub type KeyType = object::KeyType;

/// A group of contacts that are directly or indirectly connected by sharing
/// common objects
#[derive(Clone,Debug,PartialEq)]
pub struct Group {
  pub contacts : Vec <Contact>
}