[][src]Struct cloudflare_rs::endpoints::load_balancing::Origin

pub struct Origin {
    pub name: String,
    pub address: IpAddr,
    pub enabled: bool,
    pub weight: f64,
}

An origin represents something that can serve user requests. Usually a machine, maybe an ELB. Origins with similar latency functions (e.g. origins in the same data center or region) might be in the same pool.

Fields

name: String

A human-identifiable name for the origin. e.g. app-server-1

address: IpAddr

The IP address (IPv4 or IPv6) of the origin, or the publicly addressable hostname. Hostnames entered here should resolve directly to the origin, and not be a hostname proxied by Cloudflare. e.g. 0.0.0.0

enabled: bool

Whether to enable (the default) this origin within the Pool. Disabled origins will not receive traffic and are excluded from health checks. The origin will only be disabled for the current pool.

weight: f64

The weight of this origin relative to other origins in the Pool. Based on the configured weight the total traffic is distributed among origins within the Pool.

Trait Implementations

impl ApiResult for Origin[src]

impl Clone for Origin[src]

impl Debug for Origin[src]

impl<'de> Deserialize<'de> for Origin[src]

impl Eq for Origin[src]

impl Hash for Origin[src]

impl PartialEq<Origin> for Origin[src]

impl Serialize for Origin[src]

Auto Trait Implementations

impl RefUnwindSafe for Origin

impl Send for Origin

impl Sync for Origin

impl Unpin for Origin

impl UnwindSafe for Origin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.