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 client_ip_header: Option<Option<String>>,
pub enforced: Box<ClientIpTrustView>,
pub attributed: Option<Option<Box<ClientIpTrustView>>>,
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§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
forwarders: Vec<ClientIpDiagnosticsForwardersInner>Implementations§
Source§impl ClientIpDiagnostics
impl ClientIpDiagnostics
pub fn new( trusted_proxies_set: bool, enforced: ClientIpTrustView, 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,
PhantomData<ClientIpDiagnosticsForwardersInner>: Freeze,
impl Move for ClientIpDiagnostics
impl RefUnwindSafe for ClientIpDiagnostics
impl Send for ClientIpDiagnostics
impl Sync for ClientIpDiagnostics
impl Unpin for ClientIpDiagnostics
impl UnsafeUnpin for ClientIpDiagnosticswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ClientIpTrustView is !null: UnsafeUnpin,
PhantomData<ClientIpTrustView>: UnsafeUnpin,
PhantomData<ClientIpDiagnosticsForwardersInner>: UnsafeUnpin,
impl UnwindSafe for ClientIpDiagnostics
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