pub struct RestOf {
pub arg: String,
}Expand description
This implements custom serde::de::Deserialize, and deserialize the rest of the arguments to a String, ignoring whitespaces. You need to use this as the last argument, otherwise deserialization will fail.
Fields§
§arg: StringThe captured string
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for RestOf
impl<'de> Deserialize<'de> for RestOf
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
source§impl Ord for RestOf
impl Ord for RestOf
source§impl PartialEq for RestOf
impl PartialEq for RestOf
source§impl PartialOrd for RestOf
impl PartialOrd for RestOf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for RestOf
impl StructuralEq for RestOf
impl StructuralPartialEq for RestOf
Auto Trait Implementations§
impl RefUnwindSafe for RestOf
impl Send for RestOf
impl Sync for RestOf
impl Unpin for RestOf
impl UnwindSafe for RestOf
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