[][src]Struct jenkins_api::client::TreeBuilder

pub struct TreeBuilder { /* fields omitted */ }

Helper to build a TreeQueryParam

jenkins_api::client::TreeBuilder::object("builds")
    .with_subfield("url")
    .with_subfield("result")
    .with_subfield(
        jenkins_api::client::TreeBuilder::object("actions").with_subfield("causes"),
    )
    .build();

Implementations

impl TreeBuilder[src]

pub fn new() -> Self[src]

Build a new empty TreeBuilder

pub fn with_field<T: Into<TreeQueryParam>>(self, subfield: T) -> Self[src]

Add a field to the TreeQueryParam

pub fn object(name: &str) -> Self[src]

Create a parent TreeQueryParam

pub fn with_subfield<T: Into<TreeQueryParam>>(self, subfield: T) -> Self[src]

Add a subfield to the TreeQueryParam

pub fn build(self) -> TreeQueryParam[src]

Build the TreeQueryParam

Trait Implementations

impl Debug for TreeBuilder[src]

impl Default for TreeBuilder[src]

impl Into<TreeQueryParam> for TreeBuilder[src]

Auto Trait Implementations

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, 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.