#[non_exhaustive]pub struct VersionedEndpoint {
pub root_url: String,
pub versions: Vec<ApiVersion>,
pub priority: OrderedPriority,
}Expand description
One candidate API base before selection.
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 as advertised.
versions: Vec<ApiVersion>Advertised versions, in document order.
priority: OrderedPriorityEffective priority.
Implementations§
Source§impl VersionedEndpoint
impl VersionedEndpoint
Sourcepub fn new(
root_url: impl Into<String>,
versions: Vec<ApiVersion>,
priority: OrderedPriority,
) -> Self
pub fn new( root_url: impl Into<String>, versions: Vec<ApiVersion>, priority: OrderedPriority, ) -> Self
Build a candidate endpoint.
Trait Implementations§
Source§impl Clone for VersionedEndpoint
impl Clone for VersionedEndpoint
Source§impl Debug for VersionedEndpoint
impl Debug for VersionedEndpoint
Source§impl PartialEq for VersionedEndpoint
impl PartialEq for VersionedEndpoint
impl StructuralPartialEq for VersionedEndpoint
Auto Trait Implementations§
impl Forget for VersionedEndpoint
impl Freeze for VersionedEndpoint
impl RefUnwindSafe for VersionedEndpoint
impl Send for VersionedEndpoint
impl Sync for VersionedEndpoint
impl Unpin for VersionedEndpoint
impl UnsafeUnpin for VersionedEndpoint
impl UnwindSafe for VersionedEndpoint
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