pub struct AutonomousSystem {
pub number: u32,
pub organization: Option<String>,
pub country: Option<String>,
pub description: Option<String>,
}Expand description
ASN (Autonomous System Number) information
Contains detailed information about an Autonomous System, including its identifier number, owning organization, and location.
§Examples
use gooty_proxy::inspection::AutonomousSystem;
// Create a new AutonomousSystem
let asn = AutonomousSystem {
number: 15169,
organization: Some("Google LLC".to_string()),
country: Some("US".to_string()),
description: Some("Google Global LLC".to_string()),
};
assert_eq!(asn.number, 15169);
assert_eq!(asn.organization.as_deref(), Some("Google LLC"));Fields§
§number: u32The ASN number
organization: Option<String>The organization that owns this ASN
country: Option<String>The country where this ASN is registered
description: Option<String>The description or name of the ASN
Trait Implementations§
Source§impl Clone for AutonomousSystem
impl Clone for AutonomousSystem
Source§fn clone(&self) -> AutonomousSystem
fn clone(&self) -> AutonomousSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutonomousSystem
impl Debug for AutonomousSystem
Source§impl Default for AutonomousSystem
impl Default for AutonomousSystem
Source§fn default() -> AutonomousSystem
fn default() -> AutonomousSystem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutonomousSystem
impl<'de> Deserialize<'de> for AutonomousSystem
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 Eq for AutonomousSystem
Source§impl PartialEq for AutonomousSystem
impl PartialEq for AutonomousSystem
Source§impl Serialize for AutonomousSystem
impl Serialize for AutonomousSystem
impl StructuralPartialEq for AutonomousSystem
Auto Trait Implementations§
impl Freeze for AutonomousSystem
impl RefUnwindSafe for AutonomousSystem
impl Send for AutonomousSystem
impl Sync for AutonomousSystem
impl Unpin for AutonomousSystem
impl UnsafeUnpin for AutonomousSystem
impl UnwindSafe for AutonomousSystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.