pub struct NetworkOptionsResponse {
pub version: Version,
pub allow: Option<Allow>,
}
Expand description
NetworkOptionsResponse : NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and errors.
Fields§
§version: Version
§allow: Option<Allow>
Implementations§
source§impl NetworkOptionsResponse
impl NetworkOptionsResponse
sourcepub fn new(version: Version) -> NetworkOptionsResponse
pub fn new(version: Version) -> NetworkOptionsResponse
NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and errors.
Trait Implementations§
source§impl Clone for NetworkOptionsResponse
impl Clone for NetworkOptionsResponse
source§fn clone(&self) -> NetworkOptionsResponse
fn clone(&self) -> NetworkOptionsResponse
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 moresource§impl Debug for NetworkOptionsResponse
impl Debug for NetworkOptionsResponse
source§impl Default for NetworkOptionsResponse
impl Default for NetworkOptionsResponse
source§fn default() -> NetworkOptionsResponse
fn default() -> NetworkOptionsResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NetworkOptionsResponse
impl<'de> Deserialize<'de> for NetworkOptionsResponse
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<NetworkOptionsResponse> for NetworkOptionsResponse
impl PartialEq<NetworkOptionsResponse> for NetworkOptionsResponse
source§fn eq(&self, other: &NetworkOptionsResponse) -> bool
fn eq(&self, other: &NetworkOptionsResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkOptionsResponse
impl Serialize for NetworkOptionsResponse
impl Eq for NetworkOptionsResponse
impl StructuralEq for NetworkOptionsResponse
impl StructuralPartialEq for NetworkOptionsResponse
Auto Trait Implementations§
impl RefUnwindSafe for NetworkOptionsResponse
impl Send for NetworkOptionsResponse
impl Sync for NetworkOptionsResponse
impl Unpin for NetworkOptionsResponse
impl UnwindSafe for NetworkOptionsResponse
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