[][src]Struct confluence::rpser::Method

pub struct Method {
    pub name: String,
    pub args: Vec<Element>,
}

XML method representation.

Fields

name: Stringargs: Vec<Element>

Methods

impl Method[src]

pub fn new(name: &str) -> Method[src]

Create new method with name.

pub fn with(self, arg: Element) -> Self[src]

Add argument to method.

The arg is XML Element.

pub fn as_xml(&self, api_url: &str) -> String[src]

Convert method to full XML envelope.

Trait Implementations

impl Display for Method[src]

impl Debug for Method[src]

Auto Trait Implementations

impl Send for Method

impl Sync for Method

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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