pub struct FilterPackV1 {
pub schema: String,
pub pack_id: String,
pub version: u64,
pub title: Option<String>,
pub patterns: Vec<FilterPatternV1>,
}Expand description
The signed statement of a filter pack (the bytes behind statement_b64).
Unknown top-level fields are tolerated; patterns are strict.
Fields§
§schema: String§pack_id: String§version: u64§title: Option<String>§patterns: Vec<FilterPatternV1>Implementations§
Source§impl FilterPackV1
impl FilterPackV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for FilterPackV1
impl Clone for FilterPackV1
Source§impl Debug for FilterPackV1
impl Debug for FilterPackV1
Source§impl<'de> Deserialize<'de> for FilterPackV1
impl<'de> Deserialize<'de> for FilterPackV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FilterPackV1
Source§impl PartialEq for FilterPackV1
impl PartialEq for FilterPackV1
Source§impl Serialize for FilterPackV1
impl Serialize for FilterPackV1
impl StructuralPartialEq for FilterPackV1
Auto Trait Implementations§
impl Forget for FilterPackV1
impl Freeze for FilterPackV1
impl Move for FilterPackV1
impl RefUnwindSafe for FilterPackV1
impl Send for FilterPackV1
impl Sync for FilterPackV1
impl Unpin for FilterPackV1
impl UnsafeUnpin for FilterPackV1
impl UnwindSafe for FilterPackV1
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