Struct unftp_auth_rest::Builder[][src]

pub struct Builder { /* fields omitted */ }

Used to build the RestAuthenticator

Implementations

impl Builder[src]

pub fn new() -> Builder[src]

pub fn with_username_placeholder(self, s: String) -> Self[src]

Specifies the placeholder string in the rest of the fields that would be replaced by the username

pub fn with_password_placeholder(self, s: String) -> Self[src]

specify the placeholder string in the rest of the fields that would be replaced by the password

pub fn with_method(self, s: Method) -> Self[src]

specify HTTP method

pub fn with_url(self, s: String) -> Self[src]

specify HTTP url

pub fn with_body(self, s: String) -> Self[src]

specify HTTP body (ignored if does not apply for method)

pub fn with_selector(self, s: String) -> Self[src]

specify JSON selector to be used to extract the value from the response format is serde_json’s Value.pointer()

pub fn with_regex(self, s: String) -> Self[src]

specify the value the json selector’s result should match to

pub fn build(self) -> Result<RestAuthenticator, Box<dyn Error>>[src]

Creates the authenticator.

Trait Implementations

impl Clone for Builder[src]

impl Debug for Builder[src]

impl Default for Builder[src]

Auto Trait Implementations

impl RefUnwindSafe for Builder

impl Send for Builder

impl Sync for Builder

impl Unpin for Builder

impl UnwindSafe for Builder

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> Instrument for T[src]

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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

type Owned = T

The resulting type after obtaining ownership.

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