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 PartialOrd for RestOf
impl PartialOrd for RestOf
impl Eq for RestOf
impl StructuralPartialEq for RestOf
Auto Trait Implementations§
impl Freeze for RestOf
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