pub struct LocationConfig {
pub country: Option<String>,
pub languages: Option<Vec<String>>,
}Expand description
Location configuration for proxy routing.
Fields§
§country: Option<String>Country code (ISO 3166-1 alpha-2).
languages: Option<Vec<String>>List of preferred language codes.
Trait Implementations§
Source§impl Clone for LocationConfig
impl Clone for LocationConfig
Source§fn clone(&self) -> LocationConfig
fn clone(&self) -> LocationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocationConfig
impl Debug for LocationConfig
Source§impl Default for LocationConfig
impl Default for LocationConfig
Source§fn default() -> LocationConfig
fn default() -> LocationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocationConfig
impl<'de> Deserialize<'de> for LocationConfig
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 LocationConfig
impl RefUnwindSafe for LocationConfig
impl Send for LocationConfig
impl Sync for LocationConfig
impl Unpin for LocationConfig
impl UnsafeUnpin for LocationConfig
impl UnwindSafe for LocationConfig
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