pub struct DegreeConfig {
pub edge_type: Option<String>,
pub direction: AlgoDir,
pub budget_ms: u64,
}Expand description
Configuration for [GraphDb::degree_centrality].
Fields§
§edge_type: Option<String>Restrict edges to this type. None counts all edge types.
direction: AlgoDirWhich edges to count per node.
budget_ms: u64Wall-clock budget (milliseconds) for the HTTP server endpoint.
Trait Implementations§
Source§impl Clone for DegreeConfig
impl Clone for DegreeConfig
Source§fn clone(&self) -> DegreeConfig
fn clone(&self) -> DegreeConfig
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 DegreeConfig
impl Debug for DegreeConfig
Source§impl Default for DegreeConfig
impl Default for DegreeConfig
Source§impl<'de> Deserialize<'de> for DegreeConfigwhere
DegreeConfig: Default,
impl<'de> Deserialize<'de> for DegreeConfigwhere
DegreeConfig: Default,
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
Auto Trait Implementations§
impl Freeze for DegreeConfig
impl RefUnwindSafe for DegreeConfig
impl Send for DegreeConfig
impl Sync for DegreeConfig
impl Unpin for DegreeConfig
impl UnsafeUnpin for DegreeConfig
impl UnwindSafe for DegreeConfig
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