pub struct HttpApi { /* private fields */ }Expand description
A running server, reached over HTTPS with one key.
Implementations§
Source§impl HttpApi
impl HttpApi
Sourcepub fn new(config: &ClientConfig) -> Result<Self, String>
pub fn new(config: &ClientConfig) -> Result<Self, String>
The server a client file names. The key file is held to the one
secret-file rule, and the server’s certificate is always verified:
against the file’s ca, or the system’s roots without it.
§Errors
A sentence naming the key file, the CA file or the runtime that could not be used. It never holds the token.
Trait Implementations§
Source§impl Api for HttpApi
impl Api for HttpApi
Source§fn masked(&self, uuid: &str) -> Result<Vec<String>, ApiError>
fn masked(&self, uuid: &str) -> Result<Vec<String>, ApiError>
GET /vcons/{uuid}?view=masked: the vCon’s masked view, as the
lines the detail view shows (summary_lines). Read moreAuto Trait Implementations§
impl !Freeze for HttpApi
impl !RefUnwindSafe for HttpApi
impl !UnwindSafe for HttpApi
impl Forget for HttpApi
impl Move for HttpApi
impl Send for HttpApi
impl Sync for HttpApi
impl Unpin for HttpApi
impl UnsafeUnpin for HttpApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.