pub struct EdgeWrite<TProperties> {
pub space: String,
pub type: InstanceId,
pub external_id: String,
pub start_node: InstanceId,
pub end_node: InstanceId,
pub sources: Option<Vec<EdgeOrNodeData<TProperties>>>,
pub existing_version: Option<i32>,
}Expand description
Edge to create.
Fields§
§space: StringEdge space.
type: InstanceIdEdge type (direct relation).
external_id: StringEdge external ID.
start_node: InstanceIdEdge start node.
end_node: InstanceIdEdge end node.
sources: Option<Vec<EdgeOrNodeData<TProperties>>>List of properties in various containers or views.
existing_version: Option<i32>Fail the ingestion request if the edge’s version is greater than or equal to this value.
If no existing_version is specified, the ingestion will always overwrite any existing
data for the edge (for the specified container or view). If existing_version is
set to 0, the upsert will behave as an insert, so it will fail the bulk if the
item already exists. If skipOnVersionConflict is set on the ingestion request,
then the item will be skipped instead of failing the ingestion request.
Trait Implementations§
Source§impl<'de, TProperties> Deserialize<'de> for EdgeWrite<TProperties>where
TProperties: Deserialize<'de>,
impl<'de, TProperties> Deserialize<'de> for EdgeWrite<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
Auto Trait Implementations§
impl<TProperties> Freeze for EdgeWrite<TProperties>
impl<TProperties> RefUnwindSafe for EdgeWrite<TProperties>where
TProperties: RefUnwindSafe,
impl<TProperties> Send for EdgeWrite<TProperties>where
TProperties: Send,
impl<TProperties> Sync for EdgeWrite<TProperties>where
TProperties: Sync,
impl<TProperties> Unpin for EdgeWrite<TProperties>where
TProperties: Unpin,
impl<TProperties> UnwindSafe for EdgeWrite<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