pub struct UtcSanitizer;Expand description
Sanitizer that ensures that all crate::prelude::DateTime values are within the UTC timezone.
§Example
use wasm_dbms_api::prelude::{CollapseWhitespaceSanitizer, Value, Sanitize as _};
let value = Value::Text(" Hello, World! ".into());
let sanitizer = CollapseWhitespaceSanitizer;
let sanitized_value = sanitizer.sanitize(value).unwrap();
assert_eq!(sanitized_value, Value::Text("Hello, World!".into()));Trait Implementations§
Auto Trait Implementations§
impl Freeze for UtcSanitizer
impl RefUnwindSafe for UtcSanitizer
impl Send for UtcSanitizer
impl Sync for UtcSanitizer
impl Unpin for UtcSanitizer
impl UnsafeUnpin for UtcSanitizer
impl UnwindSafe for UtcSanitizer
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