pub struct NodeAllocationExplanation {
pub weight_ranking: Option<u32>,
pub deciders: Vec<AllocationDecision>,
pub node_attributes: Value,
pub node_decision: String,
pub store: Option<AllocationStore>,
pub node_id: String,
pub transport_address: String,
pub node_name: String,
}Fields§
§weight_ranking: Option<u32>§deciders: Vec<AllocationDecision>§node_attributes: Value§node_decision: String§store: Option<AllocationStore>§node_id: String§transport_address: String§node_name: StringImplementations§
Source§impl NodeAllocationExplanation
impl NodeAllocationExplanation
pub fn new( deciders: Vec<AllocationDecision>, node_attributes: Value, node_decision: String, node_id: String, transport_address: String, node_name: String, ) -> NodeAllocationExplanation
Trait Implementations§
Source§impl Clone for NodeAllocationExplanation
impl Clone for NodeAllocationExplanation
Source§fn clone(&self) -> NodeAllocationExplanation
fn clone(&self) -> NodeAllocationExplanation
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 moreSource§impl Debug for NodeAllocationExplanation
impl Debug for NodeAllocationExplanation
Source§impl Default for NodeAllocationExplanation
impl Default for NodeAllocationExplanation
Source§fn default() -> NodeAllocationExplanation
fn default() -> NodeAllocationExplanation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeAllocationExplanation
impl<'de> Deserialize<'de> for NodeAllocationExplanation
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 for NodeAllocationExplanation
impl PartialEq for NodeAllocationExplanation
Source§fn eq(&self, other: &NodeAllocationExplanation) -> bool
fn eq(&self, other: &NodeAllocationExplanation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeAllocationExplanation
Auto Trait Implementations§
impl Freeze for NodeAllocationExplanation
impl RefUnwindSafe for NodeAllocationExplanation
impl Send for NodeAllocationExplanation
impl Sync for NodeAllocationExplanation
impl Unpin for NodeAllocationExplanation
impl UnsafeUnpin for NodeAllocationExplanation
impl UnwindSafe for NodeAllocationExplanation
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