pub enum Endpoint {
Summary,
ProductVersions(String),
ProductCdns(String),
ProductBgdl(String),
Cert(String),
Ocsp(String),
Custom(String),
}
Expand description
Common Ribbit endpoints
§Example
use ribbit_client::Endpoint;
// Product versions endpoint
let versions = Endpoint::ProductVersions("wow".to_string());
assert_eq!(versions.as_path(), "products/wow/versions");
// Certificate endpoint
let cert = Endpoint::Cert("abc123".to_string());
assert_eq!(cert.as_path(), "certs/abc123");
// Custom endpoint
let custom = Endpoint::Custom("custom/path".to_string());
assert_eq!(custom.as_path(), "custom/path");
Variants§
Summary
Summary of all products
ProductVersions(String)
Product versions
ProductCdns(String)
Product CDNs
ProductBgdl(String)
Product background download info
Cert(String)
Certificate by hash
Ocsp(String)
OCSP response by hash
Custom(String)
Custom endpoint
Implementations§
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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