Skip to main content

NodeView

Struct NodeView 

Source
pub struct NodeView {
Show 41 fields pub id: i64, pub name: String, pub remark: String, pub scheme: NodeScheme, pub address: String, pub port: u16, pub base_path: String, pub has_api_token: bool, pub enable: bool, pub allow_private_address: bool, pub tls_verify_mode: NodeTlsVerifyMode, pub pinned_cert_sha256: String, pub inbound_sync_mode: NodeInboundSyncMode, pub inbound_tags: Vec<String>, pub outbound_tag: String, pub guid: String, pub status: NodeStatus, pub last_heartbeat: i64, pub latency_ms: i64, pub xray_version: String, pub panel_version: String, pub cpu_pct: f64, pub mem_pct: f64, pub uptime_secs: u64, pub net_up: u64, pub net_down: u64, pub last_error: String, pub xray_state: String, pub xray_error: String, pub config_dirty: bool, pub config_dirty_at: i64, pub inbound_count: i64, pub client_count: i64, pub online_count: i64, pub active_count: i64, pub disabled_count: i64, pub depleted_count: i64, pub parent_guid: String, pub transitive: bool, pub created_at: i64, pub updated_at: i64,
}
Expand description

One browser-safe view of a direct or transitive node.

The tagged v3.8.5 read contract exposes hasApiToken; the token itself is write-only and is never included in node views.

Fields§

§id: i64

Panel-local database identifier. Transitive projections use zero.

§name: String

Unique configured name.

§remark: String

Operator-visible description.

§scheme: NodeScheme

Remote panel URL scheme.

§address: String

Hostname or IP address without a port.

§port: u16

Remote panel port.

§base_path: String

Remote panel base path.

§has_api_token: bool

Whether a write-only API token is stored.

§enable: bool

Whether node synchronization is enabled.

§allow_private_address: bool

Whether guarded node connections may resolve to private addresses.

§tls_verify_mode: NodeTlsVerifyMode

Node TLS verification/authentication mode.

§pinned_cert_sha256: String

Base64 SHA-256 leaf-certificate pin.

§inbound_sync_mode: NodeInboundSyncMode

Remote inbound import mode.

§inbound_tags: Vec<String>

Remote inbound tags selected for import.

§outbound_tag: String

Local Xray outbound used to reach the node.

§guid: String

Stable GUID learned from the remote panel.

§status: NodeStatus

Cached remote panel reachability.

§last_heartbeat: i64

Most recent heartbeat Unix timestamp in seconds.

§latency_ms: i64

Most recent request latency in milliseconds.

§xray_version: String

Remote Xray version.

§panel_version: String

Remote panel version.

§cpu_pct: f64

Remote CPU utilization percentage.

§mem_pct: f64

Remote memory utilization percentage.

§uptime_secs: u64

Remote host uptime in seconds.

§net_up: u64

Remote interface upload throughput in bytes per second.

§net_down: u64

Remote interface download throughput in bytes per second.

§last_error: String

Last panel connectivity error.

§xray_state: String

Remote Xray process state.

§xray_error: String

Remote Xray process error.

§config_dirty: bool

Whether node-backed configuration needs reconciliation.

§config_dirty_at: i64

Unix timestamp associated with the dirty configuration generation.

§inbound_count: i64

Number of imported inbounds hosted by the node.

§client_count: i64

Number of clients hosted by the node.

§online_count: i64

Number of currently online clients.

§active_count: i64

Number of active clients.

§disabled_count: i64

Number of disabled clients.

§depleted_count: i64

Number of depleted clients.

§parent_guid: String

Stable GUID of the managing parent panel/node.

§transitive: bool

Whether this is a read-only downstream projection.

§created_at: i64

Database creation timestamp in milliseconds.

§updated_at: i64

Database update timestamp in milliseconds.

Implementations§

Source§

impl NodeView

Source

pub fn to_request(&self) -> NodeRequest

Builds a full replacement request while retaining the stored API token.

Trait Implementations§

Source§

impl Clone for NodeView

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeView

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NodeView

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for NodeView

Source§

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 for NodeView

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for NodeView

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for NodeView

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more