pub struct HubProfile {
pub hub_id: String,
pub base_url: String,
pub trust_tier: HubTrustTier,
pub priority: u32,
pub health_url: Option<String>,
}Expand description
Hub profile - describes a Hub’s capabilities and configuration
Fields§
§hub_id: String§base_url: String§trust_tier: HubTrustTier§priority: u32Priority for hub selection (higher = preferred)
health_url: Option<String>Optional health check endpoint
Implementations§
Source§impl HubProfile
impl HubProfile
Sourcepub fn allows_operation(&self, operation: &HubOperationClass) -> bool
pub fn allows_operation(&self, operation: &HubOperationClass) -> bool
Check if this hub allows the given operation class
Trait Implementations§
Source§impl Clone for HubProfile
impl Clone for HubProfile
Source§fn clone(&self) -> HubProfile
fn clone(&self) -> HubProfile
Returns a duplicate of the value. Read more
1.0.0 · 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 HubProfile
impl Debug for HubProfile
Source§impl<'de> Deserialize<'de> for HubProfile
impl<'de> Deserialize<'de> for HubProfile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HubProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HubProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HubProfile
impl Serialize for HubProfile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for HubProfile
impl RefUnwindSafe for HubProfile
impl Send for HubProfile
impl Sync for HubProfile
impl Unpin for HubProfile
impl UnsafeUnpin for HubProfile
impl UnwindSafe for HubProfile
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