#[non_exhaustive]pub struct DiscoveryServer {
pub root_url: String,
pub versions: Vec<ApiVersion>,
pub priority: OrderedPriority,
}Expand description
One servers[] entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.root_url: StringAPI root.
versions: Vec<ApiVersion>Advertised versions in document order.
priority: OrderedPriorityEffective priority.
Trait Implementations§
Source§impl Clone for DiscoveryServer
impl Clone for DiscoveryServer
Source§impl Debug for DiscoveryServer
impl Debug for DiscoveryServer
impl Eq for DiscoveryServer
Source§impl PartialEq for DiscoveryServer
impl PartialEq for DiscoveryServer
impl StructuralPartialEq for DiscoveryServer
Auto Trait Implementations§
impl Forget for DiscoveryServer
impl Freeze for DiscoveryServer
impl RefUnwindSafe for DiscoveryServer
impl Send for DiscoveryServer
impl Sync for DiscoveryServer
impl Unpin for DiscoveryServer
impl UnsafeUnpin for DiscoveryServer
impl UnwindSafe for DiscoveryServer
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