[−][src]Struct boundary_api::BoundaryClient
BoundaryClient is used to connect to the Boundary server The Default trait is implemented to cover the Boundary server in dev mode Otherwise you can configure the client prior to authentication using builder pattern methods
Fields
host: Url
auth_method_id: String
login_name: String
password: String
Implementations
impl BoundaryClient
[src]
pub fn new<S>(host: S) -> Result<Self, BoundaryError> where
S: AsRef<str>,
[src]
S: AsRef<str>,
new()
takes in any String or &str that returns Ok() from Url::parse()
Need to configure other struct values before running authenticate()
against Boundary server
pub fn auth_method_id<'a, S>(&'a mut self, id: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
auth_method_id
configures the value passed to the Boundary auth method service
pub fn login_name<'a, S>(&'a mut self, login_name: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
login_name
configures the login name used for connecting to the Boundary auth method service
pub fn password<'a, S>(&'a mut self, password: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
password
configures the password used for connecting to the Boundary auth method service
pub async fn authenticate<'a>(&'a mut self) -> Result<Response, BoundaryError>
[src]
authenticate
will connect to the Boundary server using the current struct values
Trait Implementations
impl Clone for BoundaryClient
[src]
fn clone(&self) -> BoundaryClient
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BoundaryClient
[src]
impl Default for BoundaryClient
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BoundaryClient
impl Send for BoundaryClient
impl Sync for BoundaryClient
impl Unpin for BoundaryClient
impl !UnwindSafe for BoundaryClient
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,