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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl GroupEntity for Group
Allows the built-in Group type to be used wherever a GroupEntity
is required.