Struct whois_rust::WhoIsServerValue
source · pub struct WhoIsServerValue {
pub host: WhoIsHost,
pub query: Option<String>,
pub punycode: bool,
}
Expand description
The model of a WHOIS server.
Fields§
§host: WhoIsHost
§query: Option<String>
§punycode: bool
Implementations§
source§impl WhoIsServerValue
impl WhoIsServerValue
pub fn from_value(value: &Value) -> Result<WhoIsServerValue, WhoIsError>
pub fn from_string<S: AsRef<str>>( string: S ) -> Result<WhoIsServerValue, WhoIsError>
Trait Implementations§
source§impl Clone for WhoIsServerValue
impl Clone for WhoIsServerValue
source§fn clone(&self) -> WhoIsServerValue
fn clone(&self) -> WhoIsServerValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for WhoIsServerValue
impl Send for WhoIsServerValue
impl Sync for WhoIsServerValue
impl Unpin for WhoIsServerValue
impl UnwindSafe for WhoIsServerValue
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