Trait TryToValue

Source
pub trait TryToValue: Sized {
    // Required method
    fn try_to_value(&self) -> Result<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 values

Required Methods§

Source

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.

fallible conversion method from types into XML-RPC values

The resulting XML-RPC value will automatically have a compatible type, so this conversion can only fail if strings cannot un-escaped from XML correctly.

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 TryToValue for &str

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for &[u8]

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for bool

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for f64

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for i32

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for i64

Available on crate feature i8 only.
Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for String

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for Vec<u8>

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl TryToValue for DateTime<Utc>

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl<'a, T> TryToValue for Cow<'a, T>
where T: TryToValue + Clone,

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<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> TryToValue for (A, B, C)
where A: TryToValue, B: TryToValue, C: TryToValue,

Source§

fn try_to_value(&self) -> Result<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> TryToValue for (A, B, C, D)

Source§

fn try_to_value(&self) -> Result<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> TryToValue for (A, B, C, D, E)

Source§

fn try_to_value(&self) -> Result<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> TryToValue for (A, B, C, D, E, F)

Source§

fn try_to_value(&self) -> Result<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> TryToValue for (A, B, C, D, E, F, G)

Source§

fn try_to_value(&self) -> Result<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> TryToValue for (A, B, C, D, E, F, G, H)

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Available on crate feature nil only.
Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

impl<T> TryToValue for Box<T>
where T: TryToValue,

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.
Source§

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

Source§

fn try_to_value(&self) -> Result<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> TryToValue for [T; N]
where T: TryToValue,

Source§

fn try_to_value(&self) -> Result<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> TryToValue for [u8; N]

Source§

fn try_to_value(&self) -> Result<Value, DxrError>

👎Deprecated since 0.5.5: The dxr_shared crate was renamed to dxr with version 0.6.0.

Implementors§