pub struct EdgeFilter {
pub edge_types: Option<Vec<String>>,
pub min_weight: Option<f32>,
pub max_weight: Option<f32>,
}Expand description
Edge filter specification
Fields§
§edge_types: Option<Vec<String>>Include only edges whose label matches one of these strings.
min_weight: Option<f32>Minimum edge weight
max_weight: Option<f32>Maximum edge weight
Implementations§
Source§impl EdgeFilter
impl EdgeFilter
Sourcepub fn all() -> EdgeFilter
pub fn all() -> EdgeFilter
Create an empty filter (include all edges)
Sourcepub fn with_types<I, S>(self, types: I) -> EdgeFilter
pub fn with_types<I, S>(self, types: I) -> EdgeFilter
Filter by edge labels (string form).
Sourcepub fn with_min_weight(self, weight: f32) -> EdgeFilter
pub fn with_min_weight(self, weight: f32) -> EdgeFilter
Filter by minimum weight
Sourcepub fn with_max_weight(self, weight: f32) -> EdgeFilter
pub fn with_max_weight(self, weight: f32) -> EdgeFilter
Filter by maximum weight
Trait Implementations§
Source§impl Clone for EdgeFilter
impl Clone for EdgeFilter
Source§fn clone(&self) -> EdgeFilter
fn clone(&self) -> EdgeFilter
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 Default for EdgeFilter
impl Default for EdgeFilter
Source§fn default() -> EdgeFilter
fn default() -> EdgeFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EdgeFilter
impl RefUnwindSafe for EdgeFilter
impl Send for EdgeFilter
impl Sync for EdgeFilter
impl Unpin for EdgeFilter
impl UnsafeUnpin for EdgeFilter
impl UnwindSafe for EdgeFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request