#[non_exhaustive]pub struct SelectedEndpoint {
pub root_url: String,
pub version: String,
pub priority: OrderedPriority,
pub source_index: usize,
}Expand description
Chosen endpoint after version negotiation.
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: StringAbsolute API root without a version prefix and without a trailing slash.
version: StringExact advertised version string to place after /v.
priority: OrderedPriorityPriority used for ordering. Omitted priorities are already replaced with 1.
source_index: usizeIndex of the endpoint in the document before sorting.
Trait Implementations§
Source§impl Clone for SelectedEndpoint
impl Clone for SelectedEndpoint
Source§impl Debug for SelectedEndpoint
impl Debug for SelectedEndpoint
Source§impl<'de> Deserialize<'de> for SelectedEndpoint
impl<'de> Deserialize<'de> for SelectedEndpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SelectedEndpoint
Source§impl PartialEq for SelectedEndpoint
impl PartialEq for SelectedEndpoint
Source§impl Serialize for SelectedEndpoint
impl Serialize for SelectedEndpoint
impl StructuralPartialEq for SelectedEndpoint
Auto Trait Implementations§
impl Forget for SelectedEndpoint
impl Freeze for SelectedEndpoint
impl RefUnwindSafe for SelectedEndpoint
impl Send for SelectedEndpoint
impl Sync for SelectedEndpoint
impl Unpin for SelectedEndpoint
impl UnsafeUnpin for SelectedEndpoint
impl UnwindSafe for SelectedEndpoint
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