pub struct NetboxClient { /* private fields */ }Expand description
A NetBox REST client.
Implementations§
Source§impl NetboxClient
impl NetboxClient
Sourcepub fn new(cfg: &NetboxConfig, outbound: Outbound) -> Result<Self>
pub fn new(cfg: &NetboxConfig, outbound: Outbound) -> Result<Self>
Validates the URL and builds the TLS configuration. No network yet.
Trait Implementations§
Source§impl Debug for NetboxClient
impl Debug for NetboxClient
Source§impl NetboxApi for NetboxClient
impl NetboxApi for NetboxClient
Source§fn ip_addresses<'life0, 'async_trait>(
&'life0 self,
ip: IpAddr,
) -> Pin<Box<dyn Future<Output = Result<Vec<NetboxIp>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ip_addresses<'life0, 'async_trait>(
&'life0 self,
ip: IpAddr,
) -> Pin<Box<dyn Future<Output = Result<Vec<NetboxIp>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The
ipam/ip-addresses objects NetBox holds for this address.Source§fn object_custom_fields<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 AssignedRef,
) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn object_custom_fields<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 AssignedRef,
) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The custom fields of one device or virtual machine.
The addresses of the same machine carrying one of
roles.Source§fn fhrp_groups<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 AssignedRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<u64>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fhrp_groups<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 AssignedRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<u64>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The FHRP groups this interface is recorded as a member of.
Source§fn fhrp_group_addresses<'life0, 'life1, 'async_trait>(
&'life0 self,
group_ids: &'life1 [u64],
) -> Pin<Box<dyn Future<Output = Result<Vec<NetboxIp>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fhrp_group_addresses<'life0, 'life1, 'async_trait>(
&'life0 self,
group_ids: &'life1 [u64],
) -> Pin<Box<dyn Future<Output = Result<Vec<NetboxIp>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The addresses assigned to those groups, in one query.
Auto Trait Implementations§
impl !RefUnwindSafe for NetboxClient
impl !UnwindSafe for NetboxClient
impl Freeze for NetboxClient
impl Send for NetboxClient
impl Sync for NetboxClient
impl Unpin for NetboxClient
impl UnsafeUnpin for NetboxClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more