pub struct Serde<T>(pub T);
Expand description
A wrapper type which implements Serialize
and Deserialize
for
types involving Regex
Tuple Fields§
§0: T
Implementations§
Source§impl<T> Serde<T>
impl<T> Serde<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the Serde
, returning the inner value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Serde<Option<Regex>>
impl<'de> Deserialize<'de> for Serde<Option<Regex>>
Source§fn deserialize<D>(d: D) -> Result<Serde<Option<Regex>>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<Option<Regex>>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<Option<Regex>>
impl<'de> Deserialize<'de> for Serde<Option<Regex>>
Source§fn deserialize<D>(d: D) -> Result<Serde<Option<Regex>>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<Option<Regex>>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<Regex>
impl<'de> Deserialize<'de> for Serde<Regex>
Source§fn deserialize<D>(d: D) -> Result<Serde<Regex>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<Regex>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<Regex>
impl<'de> Deserialize<'de> for Serde<Regex>
Source§fn deserialize<D>(d: D) -> Result<Serde<Regex>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<Regex>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<RegexSet>
impl<'de> Deserialize<'de> for Serde<RegexSet>
Source§fn deserialize<D>(d: D) -> Result<Serde<RegexSet>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<RegexSet>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<RegexSet>
impl<'de> Deserialize<'de> for Serde<RegexSet>
Source§fn deserialize<D>(d: D) -> Result<Serde<RegexSet>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<RegexSet>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<Vec<Regex>>
impl<'de> Deserialize<'de> for Serde<Vec<Regex>>
Source§fn deserialize<D>(d: D) -> Result<Serde<Vec<Regex>>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<Vec<Regex>>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Serde<Vec<Regex>>
impl<'de> Deserialize<'de> for Serde<Vec<Regex>>
Source§fn deserialize<D>(d: D) -> Result<Serde<Vec<Regex>>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Serde<Vec<Regex>>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq> Eq for Serde<T>
impl<T> StructuralPartialEq for Serde<T>
Auto Trait Implementations§
impl<T> Freeze for Serde<T>where
T: Freeze,
impl<T> RefUnwindSafe for Serde<T>where
T: RefUnwindSafe,
impl<T> Send for Serde<T>where
T: Send,
impl<T> Sync for Serde<T>where
T: Sync,
impl<T> Unpin for Serde<T>where
T: Unpin,
impl<T> UnwindSafe for Serde<T>where
T: UnwindSafe,
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