pub struct ConversationFilterBuilder { /* private fields */ }Expand description
Consuming builder for ConversationFilter. Validation runs in Self::build.
Implementations§
Source§impl ConversationFilterBuilder
impl ConversationFilterBuilder
Sourcepub fn include<I, T>(self, values: I) -> Self
pub fn include<I, T>(self, values: I) -> Self
Adds conversation types to offer: im, mpim, private, or public. Replaces the collection; order is preserved.
Sourcepub fn add_include(self, value: impl Into<String>) -> Self
pub fn add_include(self, value: impl Into<String>) -> Self
Appends one item to the collection.
Sourcepub fn clear_include(self) -> Self
pub fn clear_include(self) -> Self
Omits include, including any model default.
Sets whether externally shared channels are excluded.
Omits exclude_external_shared_channels, including any model default.
Sourcepub fn exclude_bot_users(self, value: bool) -> Self
pub fn exclude_bot_users(self, value: bool) -> Self
Sets whether bot users are excluded.
Sourcepub fn clear_exclude_bot_users(self) -> Self
pub fn clear_exclude_bot_users(self) -> Self
Omits exclude_bot_users, including any model default.
Sourcepub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Adds or replaces an unmodeled extension; reserved names fail at build time.
Sourcepub fn build(self) -> Result<ConversationFilter, ValidationError>
pub fn build(self) -> Result<ConversationFilter, ValidationError>
Validates all fields and their receiving context.
§Errors
Returns a ValidationError for missing fields, invalid values, reserved
extension names, or unsupported field combinations and child contexts.
Trait Implementations§
Source§impl Clone for ConversationFilterBuilder
impl Clone for ConversationFilterBuilder
Source§impl Debug for ConversationFilterBuilder
impl Debug for ConversationFilterBuilder
Auto Trait Implementations§
impl Forget for ConversationFilterBuilder
impl Freeze for ConversationFilterBuilder
impl Move for ConversationFilterBuilder
impl RefUnwindSafe for ConversationFilterBuilder
impl Send for ConversationFilterBuilder
impl Sync for ConversationFilterBuilder
impl Unpin for ConversationFilterBuilder
impl UnsafeUnpin for ConversationFilterBuilder
impl UnwindSafe for ConversationFilterBuilder
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