pub struct NodeInfoState {
pub base_url: Url,
pub v2_0: Option<NodeInfo>,
pub v2_1: Option<NodeInfo>,
}Expand description
Shared state for the NodeInfo router.
Holds the per-version documents and the public base URL the discovery document points at.
Fields§
§base_url: UrlPublic base URL of this server, used to build the discovery
links (e.g. https://example.com).
v2_0: Option<NodeInfo>Optional NodeInfo 2.0 document.
v2_1: Option<NodeInfo>Optional NodeInfo 2.1 document.
Implementations§
Trait Implementations§
Source§impl Clone for NodeInfoState
impl Clone for NodeInfoState
Source§fn clone(&self) -> NodeInfoState
fn clone(&self) -> NodeInfoState
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 moreAuto Trait Implementations§
impl Freeze for NodeInfoState
impl RefUnwindSafe for NodeInfoState
impl Send for NodeInfoState
impl Sync for NodeInfoState
impl Unpin for NodeInfoState
impl UnsafeUnpin for NodeInfoState
impl UnwindSafe for NodeInfoState
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