pub struct FilterContextBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> FilterContextBuilder<'a>
impl<'a> FilterContextBuilder<'a>
pub fn new(schema: &'a FilterSchema) -> Self
pub fn build(self) -> FilterContext
pub fn set_int(self, field: &str, value: i64) -> Result<Self, WirerustError>
pub fn set_bool(self, field: &str, value: bool) -> Result<Self, WirerustError>
pub fn set_ip(self, field: &str, value: IpAddr) -> Result<Self, WirerustError>
pub fn set_bytes( self, field: &str, value: impl AsRef<[u8]>, ) -> Result<Self, WirerustError>
pub fn set_array( self, field: &str, value: Vec<LiteralValue>, ) -> Result<Self, WirerustError>
Auto Trait Implementations§
impl<'a> Freeze for FilterContextBuilder<'a>
impl<'a> RefUnwindSafe for FilterContextBuilder<'a>
impl<'a> Send for FilterContextBuilder<'a>
impl<'a> Sync for FilterContextBuilder<'a>
impl<'a> Unpin for FilterContextBuilder<'a>
impl<'a> UnwindSafe for FilterContextBuilder<'a>
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