Struct unftp_auth_rest::Builder [−][src]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,