pub struct Director {
pub backends: Option<Vec<Backend>>,
pub capacity: Option<i32>,
pub comment: Option<String>,
pub name: Option<String>,
pub quorum: Option<i32>,
pub shield: Option<String>,
pub _type: Option<Type>,
pub retries: Option<i32>,
}
Fields§
§backends: Option<Vec<Backend>>
List of backends associated to a director.
capacity: Option<i32>
Unused.
comment: Option<String>
A freeform descriptive note.
name: Option<String>
Name for the Director.
quorum: Option<i32>
The percentage of capacity that needs to be up for a director to be considered up. 0
to 100
.
shield: Option<String>
Selected POP to serve as a shield for the backends. Defaults to null
meaning no origin shielding if not set. Refer to the POPs API endpoint to get a list of available POPs used for shielding.
_type: Option<Type>
What type of load balance group to use.
retries: Option<i32>
How many backends to search if it fails.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Director
impl<'de> Deserialize<'de> for Director
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
impl StructuralPartialEq for Director
Auto Trait Implementations§
impl Freeze for Director
impl RefUnwindSafe for Director
impl Send for Director
impl Sync for Director
impl Unpin for Director
impl UnwindSafe for Director
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