pub trait TextProfile {
// Required methods
fn recognizes_content_type(&self, message_type: MessageType) -> bool;
fn extension_treatment(&self, number: u16) -> Option<DuplicateTreatment>;
}Expand description
Profile contract selecting which message types and extension options a deployment recognizes.
Profiles are static implementations; umsh-chat-room implements the room
profiles on top of this contract.
Required Methods§
Sourcefn recognizes_content_type(&self, message_type: MessageType) -> bool
fn recognizes_content_type(&self, message_type: MessageType) -> bool
Whether a non-control message type is recognized as displayable content in this profile.
Sourcefn extension_treatment(&self, number: u16) -> Option<DuplicateTreatment>
fn extension_treatment(&self, number: u16) -> Option<DuplicateTreatment>
Duplicate treatment for a recognized extension option, or None when
the option is unrecognized (and therefore ignorable).