pub struct WeightedBackend {
pub id: String,
pub uri: String,
pub created_at: String,
pub description: String,
pub metadata: String,
pub backends: HashMap<String, i64>,
}
Fields§
§id: String
unique identifier for this Weighted backend
uri: String
URI of the WeightedBackend API resource
created_at: String
timestamp when the backend was created, RFC 3339 format
description: String
human-readable description of this backend. Optional
metadata: String
arbitrary user-defined machine-readable data of this backend. Optional
backends: HashMap<String, i64>
the ids of the child backends to their weights [0-10000]
Trait Implementations§
Source§impl Clone for WeightedBackend
impl Clone for WeightedBackend
Source§fn clone(&self) -> WeightedBackend
fn clone(&self) -> WeightedBackend
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 WeightedBackend
impl Debug for WeightedBackend
Source§impl Default for WeightedBackend
impl Default for WeightedBackend
Source§fn default() -> WeightedBackend
fn default() -> WeightedBackend
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeightedBackend
impl<'de> Deserialize<'de> for WeightedBackend
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 WeightedBackend
impl RefUnwindSafe for WeightedBackend
impl Send for WeightedBackend
impl Sync for WeightedBackend
impl Unpin for WeightedBackend
impl UnwindSafe for WeightedBackend
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