Struct unftp_auth_rest::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Used to build the RestAuthenticator
Implementations§
source§impl Builder
impl Builder
sourcepub fn with_username_placeholder(self, s: String) -> Self
pub fn with_username_placeholder(self, s: String) -> Self
Specifies the placeholder string in the rest of the fields that would be replaced by the username
sourcepub fn with_password_placeholder(self, s: String) -> Self
pub fn with_password_placeholder(self, s: String) -> Self
specify the placeholder string in the rest of the fields that would be replaced by the password
sourcepub fn with_method(self, s: Method) -> Self
pub fn with_method(self, s: Method) -> Self
specify HTTP method
sourcepub fn with_body(self, s: String) -> Self
pub fn with_body(self, s: String) -> Self
specify HTTP body (ignored if does not apply for method)
sourcepub fn with_selector(self, s: String) -> Self
pub fn with_selector(self, s: String) -> Self
specify JSON selector to be used to extract the value from the response format is serde_json’s Value.pointer()
sourcepub fn with_regex(self, s: String) -> Self
pub fn with_regex(self, s: String) -> Self
specify the value the json selector’s result should match to