pub struct ContainerCreate {
pub space: String,
pub external_id: String,
pub name: Option<String>,
pub description: Option<String>,
pub used_for: Option<UsedFor>,
pub properties: HashMap<String, ContainerPropertyDefinition>,
pub constraints: HashMap<String, ContainerConstraint>,
pub indexes: HashMap<String, ContainerIndex>,
}Expand description
Create a container.
Fields§
§space: StringContainer space.
external_id: StringContainer external ID.
name: Option<String>Container name.
description: Option<String>Container description.
used_for: Option<UsedFor>Whether this container can be used for nodes, edges, or both.
properties: HashMap<String, ContainerPropertyDefinition>Properties in this container.
constraints: HashMap<String, ContainerConstraint>Container constraints.
indexes: HashMap<String, ContainerIndex>Container indexes.
Trait Implementations§
Source§impl Clone for ContainerCreate
impl Clone for ContainerCreate
Source§fn clone(&self) -> ContainerCreate
fn clone(&self) -> ContainerCreate
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 Create<ContainerCreate, ContainerDefinition> for Resource<ContainerDefinition>
impl Create<ContainerCreate, ContainerDefinition> for Resource<ContainerDefinition>
Source§impl Debug for ContainerCreate
impl Debug for ContainerCreate
Source§impl Default for ContainerCreate
impl Default for ContainerCreate
Source§fn default() -> ContainerCreate
fn default() -> ContainerCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerCreate
impl<'de> Deserialize<'de> for ContainerCreate
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 From<ContainerDefinition> for ContainerCreate
impl From<ContainerDefinition> for ContainerCreate
Source§fn from(value: ContainerDefinition) -> Self
fn from(value: ContainerDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContainerCreate
impl RefUnwindSafe for ContainerCreate
impl Send for ContainerCreate
impl Sync for ContainerCreate
impl Unpin for ContainerCreate
impl UnwindSafe for ContainerCreate
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