pub struct Behaviour {
pub proto_experiments: bool,
pub proto_experiment_fileshare: bool,
pub proto_experiment_groups: bool,
pub profile_name: String,
pub profile_pic_path: Option<String>,
pub new_contant_policy: NewContactPolicy,
pub contact_interaction_policy: ContactInteractionPolicy,
pub group_invite_policy: GroupInvitePolicy,
pub group_interaction_policy: GroupInteractionPolicy,
pub allow_list: AllowListMembers,
}Expand description
Settings for the bot on how it should automatically behave
Fields§
§proto_experiments: boolThe bot will enable experimental feautres (required for any experiments to be used)
The bot will enable the file sharing experiment
proto_experiment_groups: boolThe bot will enable the groups experiment
profile_name: StringThe profile name the bot will share with accepted conversations
profile_pic_path: Option<String>The profile pic the bot with share with accepted conversations IF the file share exoeriment is enabled
new_contant_policy: NewContactPolicyPolicy dictacting how the bot should automatically handle ContactCreated events
contact_interaction_policy: ContactInteractionPolicyPolicy dictating how the bot should handle messages from p2p contacts
group_invite_policy: GroupInvitePolicyPolicy dictating how the bot should handle Group Invites
group_interaction_policy: GroupInteractionPolicyPolicy dictacting how the bot should respond to @ messages in groups
allow_list: AllowListMembersAuto Trait Implementations§
impl Freeze for Behaviour
impl RefUnwindSafe for Behaviour
impl Send for Behaviour
impl Sync for Behaviour
impl Unpin for Behaviour
impl UnwindSafe for Behaviour
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more