[][src]Struct tiberius::xml::XmlData

pub struct XmlData { /* fields omitted */ }

A representation of XML data in TDS. Holds the data as a UTF-8 string and and optional information about the schema.

Implementations

impl XmlData[src]

pub fn new(data: impl ToString) -> Self[src]

Create a new XmlData with the given string. Validation of the XML data happens in the database.

pub fn schema(&self) -> Option<&XmlSchema>[src]

Returns information about the schema of the XML file, if existing.

pub fn into_string(self) -> String[src]

Takes the XML string out from the struct.

Trait Implementations

impl AsRef<str> for XmlData[src]

impl Clone for XmlData[src]

impl Debug for XmlData[src]

impl<'a> FromSql<'a> for &'a XmlData[src]

impl FromSqlOwned for XmlData[src]

impl PartialEq<XmlData> for XmlData[src]

impl StructuralPartialEq for XmlData[src]

impl ToSql for XmlData[src]

impl ToString for XmlData[src]

Auto Trait Implementations

impl RefUnwindSafe for XmlData

impl Send for XmlData

impl Sync for XmlData

impl Unpin for XmlData

impl UnwindSafe for XmlData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,