pub struct RankedNeighborhoodOptions {
pub depth: usize,
pub max_nodes: usize,
pub scoring: NeighborhoodScoring,
pub edge_kind: Option<String>,
pub property_mode: PropertyMode,
pub observed_at_now_unix: Option<i64>,
pub observed_at_half_life_secs: i64,
pub observed_at_weight: i64,
pub memory_node_boost: i64,
}Fields§
§depth: usize§max_nodes: usize§scoring: NeighborhoodScoring§edge_kind: Option<String>§property_mode: PropertyMode§observed_at_now_unix: Option<i64>§observed_at_half_life_secs: i64§observed_at_weight: i64§memory_node_boost: i64Implementations§
Source§impl RankedNeighborhoodOptions
impl RankedNeighborhoodOptions
pub fn new(depth: usize, max_nodes: usize) -> RankedNeighborhoodOptions
pub fn with_scoring( self, scoring: NeighborhoodScoring, ) -> RankedNeighborhoodOptions
pub fn with_edge_kind( self, kind: impl Into<String>, ) -> RankedNeighborhoodOptions
pub fn with_property_mode(self, mode: PropertyMode) -> RankedNeighborhoodOptions
pub fn with_observed_at_now_unix( self, now_unix: i64, ) -> RankedNeighborhoodOptions
pub fn with_observed_at_half_life_secs( self, half_life_secs: i64, ) -> RankedNeighborhoodOptions
pub fn with_observed_at_weight(self, weight: i64) -> RankedNeighborhoodOptions
pub fn with_memory_node_boost(self, boost: i64) -> RankedNeighborhoodOptions
Trait Implementations§
Source§impl Clone for RankedNeighborhoodOptions
impl Clone for RankedNeighborhoodOptions
Source§fn clone(&self) -> RankedNeighborhoodOptions
fn clone(&self) -> RankedNeighborhoodOptions
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 RankedNeighborhoodOptions
impl Debug for RankedNeighborhoodOptions
Source§impl<'de> Deserialize<'de> for RankedNeighborhoodOptions
impl<'de> Deserialize<'de> for RankedNeighborhoodOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RankedNeighborhoodOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RankedNeighborhoodOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RankedNeighborhoodOptions
Source§impl PartialEq for RankedNeighborhoodOptions
impl PartialEq for RankedNeighborhoodOptions
Source§fn eq(&self, other: &RankedNeighborhoodOptions) -> bool
fn eq(&self, other: &RankedNeighborhoodOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RankedNeighborhoodOptions
impl Serialize for RankedNeighborhoodOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RankedNeighborhoodOptions
Auto Trait Implementations§
impl Freeze for RankedNeighborhoodOptions
impl RefUnwindSafe for RankedNeighborhoodOptions
impl Send for RankedNeighborhoodOptions
impl Sync for RankedNeighborhoodOptions
impl Unpin for RankedNeighborhoodOptions
impl UnsafeUnpin for RankedNeighborhoodOptions
impl UnwindSafe for RankedNeighborhoodOptions
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