pub struct DirectorResponse {Show 13 fields
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>,
pub service_id: Option<Box<String>>,
pub version: Option<Box<i32>>,
pub created_at: Option<String>,
pub deleted_at: Option<String>,
pub updated_at: Option<String>,
}
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.
service_id: Option<Box<String>>
§version: Option<Box<i32>>
§created_at: Option<String>
Date and time in ISO 8601 format.
deleted_at: Option<String>
Date and time in ISO 8601 format.
updated_at: Option<String>
Date and time in ISO 8601 format.
Implementations§
Source§impl DirectorResponse
impl DirectorResponse
pub fn new() -> DirectorResponse
Trait Implementations§
Source§impl Clone for DirectorResponse
impl Clone for DirectorResponse
Source§fn clone(&self) -> DirectorResponse
fn clone(&self) -> DirectorResponse
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 DirectorResponse
impl Debug for DirectorResponse
Source§impl Default for DirectorResponse
impl Default for DirectorResponse
Source§fn default() -> DirectorResponse
fn default() -> DirectorResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectorResponse
impl<'de> Deserialize<'de> for DirectorResponse
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
Source§impl PartialEq for DirectorResponse
impl PartialEq for DirectorResponse
Source§impl Serialize for DirectorResponse
impl Serialize for DirectorResponse
impl StructuralPartialEq for DirectorResponse
Auto Trait Implementations§
impl Freeze for DirectorResponse
impl RefUnwindSafe for DirectorResponse
impl Send for DirectorResponse
impl Sync for DirectorResponse
impl Unpin for DirectorResponse
impl UnwindSafe for DirectorResponse
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