[−][src]Struct openstack::auth::NoAuth
Authentication type that provides no authentication.
This type always uses a pre-defined endpoint and sends no authenticaiton information:
let auth = osauth::NoAuth::new("https://cloud.local/baremetal") .expect("Invalid auth URL"); let session = osauth::Session::new(auth);
Implementations
impl NoAuth
[src][−]
pub fn new<U>(endpoint: U) -> Result<NoAuth, Error> where
U: IntoUrl,
[src][−]
U: IntoUrl,
Create a new fake authentication method using a fixed endpoint.
This endpoint will be returned in response to all get_endpoint
calls
of the AuthType trait.
pub fn new_with_client<U>(endpoint: U, client: Client) -> Result<NoAuth, Error> where
U: IntoUrl,
[src][−]
U: IntoUrl,
Create a new fake authentication method using a fixed endpoint and an HTTP client.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NoAuth
impl Send for NoAuth
impl Sync for NoAuth
impl Unpin for NoAuth
impl !UnwindSafe for NoAuth
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,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,