pub struct Nothing;Expand description
A type containing nothing at all. For Option-like behavior on the type level, i.e. to describe
the lack of a capability or field (an API key, for instance)
Trait Implementations§
Source§impl ApiKey for Nothing
impl ApiKey for Nothing
Source§fn into_header(self) -> Option<Result<(HeaderName, HeaderValue), Error>>
fn into_header(self) -> Option<Result<(HeaderName, HeaderValue), Error>>
Convert this key into a default request header, if the generic client
should own that authentication header.
Source§impl Capability for Nothing
impl Capability for Nothing
impl Copy for Nothing
Source§impl From<Nothing> for OllamaApiKey
impl From<Nothing> for OllamaApiKey
Source§fn from(_: Nothing) -> OllamaApiKey
fn from(_: Nothing) -> OllamaApiKey
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Nothing
impl RefUnwindSafe for Nothing
impl Send for Nothing
impl Sync for Nothing
impl Unpin for Nothing
impl UnsafeUnpin for Nothing
impl UnwindSafe for Nothing
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