pub struct CdnEndpoint {
pub url: String,
pub priority: u32,
pub region: Option<String>,
pub supports_range: bool,
pub max_connections: usize,
pub headers: Vec<(String, String)>,
}Expand description
CDN endpoint configuration
Fields§
§url: StringBase URL for the endpoint
priority: u32Priority (lower = preferred)
region: Option<String>Geographic region (for latency-based selection)
supports_range: boolWhether this endpoint supports range requests
max_connections: usizeMaximum concurrent connections
headers: Vec<(String, String)>Endpoint-specific headers
Implementations§
Source§impl CdnEndpoint
impl CdnEndpoint
Sourcepub fn with_priority(self, priority: u32) -> Self
pub fn with_priority(self, priority: u32) -> Self
Set priority
Sourcepub fn with_region(self, region: impl Into<String>) -> Self
pub fn with_region(self, region: impl Into<String>) -> Self
Set region
Trait Implementations§
Source§impl Clone for CdnEndpoint
impl Clone for CdnEndpoint
Source§fn clone(&self) -> CdnEndpoint
fn clone(&self) -> CdnEndpoint
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 CdnEndpoint
impl Debug for CdnEndpoint
Source§impl<'de> Deserialize<'de> for CdnEndpoint
impl<'de> Deserialize<'de> for CdnEndpoint
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
Auto Trait Implementations§
impl Freeze for CdnEndpoint
impl RefUnwindSafe for CdnEndpoint
impl Send for CdnEndpoint
impl Sync for CdnEndpoint
impl Unpin for CdnEndpoint
impl UnwindSafe for CdnEndpoint
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