pub struct NodeWrite<TProperties> {
pub space: String,
pub external_id: String,
pub sources: Option<Vec<EdgeOrNodeData<TProperties>>>,
pub existing_version: Option<i32>,
pub type: Option<InstanceId>,
}Expand description
Node to create.
Fields§
§space: StringNode space.
external_id: StringNode external ID.
sources: Option<Vec<EdgeOrNodeData<TProperties>>>List of properties in various containers or views.
existing_version: Option<i32>Fail the ingestion request if the node’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 node (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.
type: Option<InstanceId>Node type (direct relation).
Trait Implementations§
Source§impl<'de, TProperties> Deserialize<'de> for NodeWrite<TProperties>where
TProperties: Deserialize<'de>,
impl<'de, TProperties> Deserialize<'de> for NodeWrite<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 NodeWrite<TProperties>
impl<TProperties> RefUnwindSafe for NodeWrite<TProperties>where
TProperties: RefUnwindSafe,
impl<TProperties> Send for NodeWrite<TProperties>where
TProperties: Send,
impl<TProperties> Sync for NodeWrite<TProperties>where
TProperties: Sync,
impl<TProperties> Unpin for NodeWrite<TProperties>where
TProperties: Unpin,
impl<TProperties> UnwindSafe for NodeWrite<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