pub trait GroupEntity {
// Required method
fn group_id(&self) -> &str;
}Expand description
Trait for types that expose a stable group identifier.
Implement this for your own group types when infrastructure code needs a
canonical string identifier but you do not want to use the built-in Group
type directly.
Required Methods§
Implementors§
impl GroupEntity for Group
Allows the built-in Group type to be used wherever a GroupEntity
is required.