pub enum NodeOrEdge<TProperties> {
Node(NodeDefinition<TProperties>),
Edge(EdgeDefinition<TProperties>),
}Expand description
Node or edge with properties.
Variants§
Trait Implementations§
Source§impl<TProperties: Clone> Clone for NodeOrEdge<TProperties>
impl<TProperties: Clone> Clone for NodeOrEdge<TProperties>
Source§fn clone(&self) -> NodeOrEdge<TProperties>
fn clone(&self) -> NodeOrEdge<TProperties>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<TProperties: Debug> Debug for NodeOrEdge<TProperties>
impl<TProperties: Debug> Debug for NodeOrEdge<TProperties>
Source§impl<'de, TProperties> Deserialize<'de> for NodeOrEdge<TProperties>where
TProperties: Deserialize<'de>,
impl<'de, TProperties> Deserialize<'de> for NodeOrEdge<TProperties>where
TProperties: Deserialize<'de>,
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<TProperties> FilterWithRequest<FilterInstancesRequest, NodeOrEdge<TProperties>> for Resource<SlimNodeOrEdge>
impl<TProperties> FilterWithRequest<FilterInstancesRequest, NodeOrEdge<TProperties>> for Resource<SlimNodeOrEdge>
Source§fn filter(
&self,
filter: TFilter,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn filter( &self, filter: TFilter, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Filter resources. Read more
Source§fn filter_all(
&self,
filter: TFilter,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all( &self, filter: TFilter, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources, following cursors until they are exhausted. Read more
Source§fn filter_all_stream(
&self,
filter: TFilter,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn filter_all_stream( &self, filter: TFilter, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
Filter resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Auto Trait Implementations§
impl<TProperties> Freeze for NodeOrEdge<TProperties>
impl<TProperties> RefUnwindSafe for NodeOrEdge<TProperties>where
TProperties: RefUnwindSafe,
impl<TProperties> Send for NodeOrEdge<TProperties>where
TProperties: Send,
impl<TProperties> Sync for NodeOrEdge<TProperties>where
TProperties: Sync,
impl<TProperties> Unpin for NodeOrEdge<TProperties>where
TProperties: Unpin,
impl<TProperties> UnwindSafe for NodeOrEdge<TProperties>where
TProperties: UnwindSafe,
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