pub fn try_new(value: &impl Serialize) -> Result<QueryString, serde_urlencoded::ser::Error> {
        let mut query = Self::default();
        value.serialize(query.serializer())?;
        Ok(query)
    }
/// Creates a new URL encoded query string from a initial, serializable value.
///
/// Fails if cannot serialize to `application/x-www-form-urlencoded` format.
Creates a new URL encoded query string from a initial, serializable value.
Fails if cannot serialize to `application/x-www-form-urlencoded` format.
Creates a new URL encoded query string from a initial serializable value . Fails if cannot serialize to ` application / x - www - form - urlencoded ` format .
pub fn try_new(value: &impl Serialize) -> Result<QueryString, serde_urlencoded::ser::Error> {
        let mut query = Self::default();
        value.serialize(query.serializer())?;
        Ok(query)
    }
pub fn try_new ( value : & impl Serialize ) -> Result < QueryString , serde_urlencoded :: ser :: Error > { let mut query = Self :: default ( ) ; value . serialize ( query . serializer ( ) ) ? ; Ok ( query ) }
Creates a new URL encoded query string from a initial, serializable value.
Creates a new URL encoded query string from a initial serializable value .
value
&impl Serialize
value
&impl Serialize