pub struct ClientIpDiagnostics {
pub peer: Option<Option<String>>,
pub forwarding_header: Option<Option<String>>,
pub client_ip: Option<Option<String>>,
pub enforced_client_ip: Option<Option<String>>,
pub trusted_proxies_set: bool,
pub private_ranges_trusted: bool,
pub client_ip_header: Option<Option<String>>,
pub enforced: Box<ClientIpTrustView>,
pub attributed: Option<Option<Box<ClientIpTrustView>>>,
pub configuration: Box<ClientIpDiagnosticsConfiguration>,
pub forwarders: Vec<ClientIpDiagnosticsForwardersInner>,
}Fields§
§peer: Option<Option<String>>§forwarding_header: Option<Option<String>>§client_ip: Option<Option<String>>as audit entries and the login rate limit record it
enforced_client_ip: Option<Option<String>>as token IP allowlists see it
trusted_proxies_set: bool§private_ranges_trusted: boola whole private range is trusted, so any host on the private network can name its own client address
client_ip_header: Option<Option<String>>§enforced: Box<ClientIpTrustView>§attributed: Option<Option<Box<ClientIpTrustView>>>absent when it is the enforced view, which it differs from only by Cloudflare
configuration: Box<ClientIpDiagnosticsConfiguration>§forwarders: Vec<ClientIpDiagnosticsForwardersInner>Implementations§
Source§impl ClientIpDiagnostics
impl ClientIpDiagnostics
pub fn new( trusted_proxies_set: bool, private_ranges_trusted: bool, enforced: ClientIpTrustView, configuration: ClientIpDiagnosticsConfiguration, forwarders: Vec<ClientIpDiagnosticsForwardersInner>, ) -> ClientIpDiagnostics
Trait Implementations§
Source§impl Clone for ClientIpDiagnostics
impl Clone for ClientIpDiagnostics
Source§impl Debug for ClientIpDiagnostics
impl Debug for ClientIpDiagnostics
Source§impl Default for ClientIpDiagnostics
impl Default for ClientIpDiagnostics
Source§impl<'de> Deserialize<'de> for ClientIpDiagnostics
impl<'de> Deserialize<'de> for ClientIpDiagnostics
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 ClientIpDiagnostics
impl PartialEq for ClientIpDiagnostics
Source§impl Serialize for ClientIpDiagnostics
impl Serialize for ClientIpDiagnostics
impl StructuralPartialEq for ClientIpDiagnostics
Auto Trait Implementations§
impl Forget for ClientIpDiagnostics
impl Freeze for ClientIpDiagnosticswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ClientIpTrustView is !null: Freeze,
PhantomData<ClientIpTrustView>: Freeze,
*const ClientIpDiagnosticsConfiguration is !null: Freeze,
PhantomData<ClientIpDiagnosticsConfiguration>: Freeze,
PhantomData<ClientIpDiagnosticsForwardersInner>: Freeze,
impl Move for ClientIpDiagnostics
impl RefUnwindSafe for ClientIpDiagnostics
impl Send for ClientIpDiagnosticswhere
RawVecInner: Send,
BoxRaw<ClientIpTrustView>: Send,
BoxRaw<ClientIpDiagnosticsConfiguration>: Send,
impl Sync for ClientIpDiagnosticswhere
RawVecInner: Sync,
BoxRaw<ClientIpTrustView>: Sync,
BoxRaw<ClientIpDiagnosticsConfiguration>: Sync,
impl Unpin for ClientIpDiagnosticswhere
*const u8 is !null: Unpin,
Box<ClientIpTrustView>: Unpin,
Box<ClientIpDiagnosticsConfiguration>: Unpin,
impl UnsafeUnpin for ClientIpDiagnosticswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ClientIpTrustView is !null: UnsafeUnpin,
PhantomData<ClientIpTrustView>: UnsafeUnpin,
*const ClientIpDiagnosticsConfiguration is !null: UnsafeUnpin,
PhantomData<ClientIpDiagnosticsConfiguration>: UnsafeUnpin,
PhantomData<ClientIpDiagnosticsForwardersInner>: UnsafeUnpin,
impl UnwindSafe for ClientIpDiagnosticswhere
RawVecInner: UnwindSafe,
BoxRaw<ClientIpTrustView>: UnwindSafe,
BoxRaw<ClientIpDiagnosticsConfiguration>: UnwindSafe,
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