pub trait TryToParams: Sized {
// Required method
fn try_to_params(&self) -> Result<Vec<Value>, DxrError>;
}👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Expand description
conversion trait from Rust types to XML-RPC method call argument lists
Required Methods§
Sourcefn try_to_params(&self) -> Result<Vec<Value>, DxrError>
👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
fn try_to_params(&self) -> Result<Vec<Value>, DxrError>
conversion method from types into XML-RPC method call argument lists
For primitive types and maps, calling this method just calls their TryToValue
implementation in turn. For collections (Vec and tuples), their values are converted to
Values, but they are treated as a list of arguments, not as a single argument that is a
list.
This trait can be used for argument conversion in XML-RPC clients.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl TryToParams for &str
impl TryToParams for &str
Source§impl TryToParams for &[u8]
impl TryToParams for &[u8]
Source§impl TryToParams for bool
impl TryToParams for bool
Source§impl TryToParams for f64
impl TryToParams for f64
Source§impl TryToParams for i32
impl TryToParams for i32
Source§impl TryToParams for i64
Available on crate feature i8 only.
impl TryToParams for i64
Available on crate feature
i8 only.Source§impl TryToParams for String
impl TryToParams for String
Source§impl TryToParams for Vec<u8>
impl TryToParams for Vec<u8>
Source§impl TryToParams for DateTime<Utc>
impl TryToParams for DateTime<Utc>
Source§impl<A, B> TryToParams for (A, B)where
A: TryToValue,
B: TryToValue,
impl<A, B> TryToParams for (A, B)where
A: TryToValue,
B: TryToValue,
Source§impl<A, B, C> TryToParams for (A, B, C)
impl<A, B, C> TryToParams for (A, B, C)
Source§impl<A, B, C, D> TryToParams for (A, B, C, D)
impl<A, B, C, D> TryToParams for (A, B, C, D)
Source§impl<A, B, C, D, E> TryToParams for (A, B, C, D, E)
impl<A, B, C, D, E> TryToParams for (A, B, C, D, E)
Source§impl<A, B, C, D, E, F> TryToParams for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> TryToParams for (A, B, C, D, E, F)
Source§impl<A, B, C, D, E, F, G> TryToParams for (A, B, C, D, E, F, G)where
A: TryToValue,
B: TryToValue,
C: TryToValue,
D: TryToValue,
E: TryToValue,
F: TryToValue,
G: TryToValue,
impl<A, B, C, D, E, F, G> TryToParams for (A, B, C, D, E, F, G)where
A: TryToValue,
B: TryToValue,
C: TryToValue,
D: TryToValue,
E: TryToValue,
F: TryToValue,
G: TryToValue,
Source§impl<A, B, C, D, E, F, G, H> TryToParams for (A, B, C, D, E, F, G, H)where
A: TryToValue,
B: TryToValue,
C: TryToValue,
D: TryToValue,
E: TryToValue,
F: TryToValue,
G: TryToValue,
H: TryToValue,
impl<A, B, C, D, E, F, G, H> TryToParams for (A, B, C, D, E, F, G, H)where
A: TryToValue,
B: TryToValue,
C: TryToValue,
D: TryToValue,
E: TryToValue,
F: TryToValue,
G: TryToValue,
H: TryToValue,
Source§impl<T> TryToParams for &Option<T>where
T: TryToValue,
Available on crate feature nil only.
impl<T> TryToParams for &Option<T>where
T: TryToValue,
Available on crate feature
nil only.Source§impl<T> TryToParams for &[T]where
T: TryToValue,
impl<T> TryToParams for &[T]where
T: TryToValue,
Source§impl<T> TryToParams for Option<T>where
T: TryToValue,
Available on crate feature nil only.
impl<T> TryToParams for Option<T>where
T: TryToValue,
Available on crate feature
nil only.