pub struct BytesConfig {
pub bytes: Vec<u8>,
pub min_length: usize,
pub encodings: Vec<Encoding>,
}
Fields§
§bytes: Vec<u8>
§min_length: usize
§encodings: Vec<Encoding>
Implementations§
Source§impl BytesConfig
impl BytesConfig
pub fn new(bytes: Vec<u8>) -> Self
pub fn with_min_length(self, min_length: usize) -> Self
pub fn with_encoding(self, encoding: Encoding) -> Self
pub fn with_encodings(self, encodings: Vec<Encoding>) -> Self
Trait Implementations§
impl Config for BytesConfig
Auto Trait Implementations§
impl Freeze for BytesConfig
impl RefUnwindSafe for BytesConfig
impl Send for BytesConfig
impl Sync for BytesConfig
impl Unpin for BytesConfig
impl UnwindSafe for BytesConfig
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