Skip to main content

GroupEntity

Trait GroupEntity 

Source
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§

Source

fn group_id(&self) -> &str

Returns the unique identifier for this group as &str.

Implementors§

Source§

impl GroupEntity for Group

Allows the built-in Group type to be used wherever a GroupEntity is required.