Trait TryToParams

Source
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§

Source

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.

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

Source§

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.
Source§

impl TryToParams for &[u8]

Source§

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.
Source§

impl TryToParams for bool

Source§

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.
Source§

impl TryToParams for f64

Source§

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.
Source§

impl TryToParams for i32

Source§

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.
Source§

impl TryToParams for i64

Available on crate feature i8 only.
Source§

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.
Source§

impl TryToParams for String

Source§

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.
Source§

impl TryToParams for Vec<u8>

Source§

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.
Source§

impl TryToParams for DateTime<Utc>

Source§

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.
Source§

impl<A, B> TryToParams for (A, B)
where A: TryToValue, B: TryToValue,

Source§

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.
Source§

impl<A, B, C> TryToParams for (A, B, C)
where A: TryToValue, B: TryToValue, C: TryToValue,

Source§

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.
Source§

impl<A, B, C, D> TryToParams for (A, B, C, D)

Source§

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.
Source§

impl<A, B, C, D, E> TryToParams for (A, B, C, D, E)

Source§

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.
Source§

impl<A, B, C, D, E, F> TryToParams for (A, B, C, D, E, F)

Source§

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.
Source§

impl<A, B, C, D, E, F, G> TryToParams for (A, B, C, D, E, F, G)

Source§

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.
Source§

impl<A, B, C, D, E, F, G, H> TryToParams for (A, B, C, D, E, F, G, H)

Source§

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.
Source§

impl<T> TryToParams for &Option<T>
where T: TryToValue,

Available on crate feature nil only.
Source§

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.
Source§

impl<T> TryToParams for &[T]
where T: TryToValue,

Source§

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.
Source§

impl<T> TryToParams for Option<T>
where T: TryToValue,

Available on crate feature nil only.
Source§

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.
Source§

impl<T> TryToParams for (T,)
where T: TryToValue,

Source§

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.
Source§

impl<T> TryToParams for Vec<T>
where T: TryToValue,

Source§

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.
Source§

impl<T> TryToParams for HashMap<&str, T>
where T: TryToValue,

Source§

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.
Source§

impl<T> TryToParams for HashMap<String, T>
where T: TryToValue,

Source§

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.
Source§

impl<T, const N: usize> TryToParams for [T; N]
where T: TryToValue,

Source§

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.
Source§

impl<const N: usize> TryToParams for [u8; N]

Source§

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.

Implementors§