pub struct BehaviourBuilder { /* private fields */ }Expand description
intermediary struct for building a Behaviour using builder patern
Implementations§
Source§impl BehaviourBuilder
impl BehaviourBuilder
Sourcepub fn groups(self, val: bool) -> Self
pub fn groups(self, val: bool) -> Self
Control if the Behaviour of the bot should include groups (enabling experiments and the group experiment)
Control if the Behaviour of the bot should include filesharing (enabling experiments and the filesharing experiment)
Sourcepub fn profile_pic_path(self, val: String) -> Self
pub fn profile_pic_path(self, val: String) -> Self
Set a profile pic for the bot and enable the filesharing experiment
Sourcepub fn new_contact_policy(self, val: NewContactPolicy) -> Self
pub fn new_contact_policy(self, val: NewContactPolicy) -> Self
Set a new contact policy for the behaviour
Sourcepub fn contact_interaction_policy(self, val: ContactInteractionPolicy) -> Self
pub fn contact_interaction_policy(self, val: ContactInteractionPolicy) -> Self
pub fn group_invite_policy(self, val: GroupInvitePolicy) -> Self
pub fn group_interaction_policy(self, val: GroupInteractionPolicy) -> Self
pub fn allow_list(self, val: AllowListMembers) -> Self
Auto Trait Implementations§
impl Freeze for BehaviourBuilder
impl RefUnwindSafe for BehaviourBuilder
impl Send for BehaviourBuilder
impl Sync for BehaviourBuilder
impl Unpin for BehaviourBuilder
impl UnwindSafe for BehaviourBuilder
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