pub struct AsInfo {
pub asn: String,
pub prefix: String,
pub cc: String,
pub registry: String,
pub allocated: String,
pub name: String,
}Expand description
Information about an autonomous System (AS).
Fields§
§asn: StringThe autonomous system Number.
This is returned without the AS prefix i.e. 12301.
prefix: StringThe AS prefix.
Given in CIDR notation i.e. 81.0.100.0/22.
cc: StringThe country code.
Given as a ISO format i.e. HU.
registry: StringAS registry name.
Given as a string i.e. ripencc.
allocated: StringAllocation date.
Given as an ISO date i.e. 1999-02-25.
name: StringThe autonomous system (AS) Name.
Given as a string i.e. INVITECH, HU.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsInfo
impl RefUnwindSafe for AsInfo
impl Send for AsInfo
impl Sync for AsInfo
impl Unpin for AsInfo
impl UnwindSafe for AsInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more