#[non_exhaustive]pub enum ApiSourceFamily {
Official,
Internal,
Hybrid,
}Expand description
Which controller API a crate::capabilities::Capability is served from.
#[non_exhaustive]: callers only ever read this (via a capability’s
source field or a match),
never construct it — a future 4th source family should not be a
downstream semver break.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Official
UniFi’s documented /proxy/network/integration REST API.
Internal
The controller’s own internal (undocumented, but stable) web-UI API.
Hybrid
Resolves to Official or Internal
at call time — see crate::actions::hybrid.
Trait Implementations§
Source§impl Clone for ApiSourceFamily
impl Clone for ApiSourceFamily
Source§fn clone(&self) -> ApiSourceFamily
fn clone(&self) -> ApiSourceFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiSourceFamily
impl Debug for ApiSourceFamily
Source§impl PartialEq for ApiSourceFamily
impl PartialEq for ApiSourceFamily
Source§fn eq(&self, other: &ApiSourceFamily) -> bool
fn eq(&self, other: &ApiSourceFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApiSourceFamily
impl Eq for ApiSourceFamily
impl StructuralPartialEq for ApiSourceFamily
Auto Trait Implementations§
impl Freeze for ApiSourceFamily
impl RefUnwindSafe for ApiSourceFamily
impl Send for ApiSourceFamily
impl Sync for ApiSourceFamily
impl Unpin for ApiSourceFamily
impl UnsafeUnpin for ApiSourceFamily
impl UnwindSafe for ApiSourceFamily
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.