pub struct ContainerDefinition {
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>,
pub created_time: i64,
pub last_updated_time: i64,
pub is_global: bool,
}Expand description
Data modeling 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.
created_time: i64Time this file was created, in milliseconds since epoch.
last_updated_time: i64Time this file was last updated, in milliseconds since epoch.
is_global: boolWhether this is a global container
Trait Implementations§
Source§impl Clone for ContainerDefinition
impl Clone for ContainerDefinition
Source§fn clone(&self) -> ContainerDefinition
fn clone(&self) -> ContainerDefinition
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 ContainerDefinition
impl Debug for ContainerDefinition
Source§impl Default for ContainerDefinition
impl Default for ContainerDefinition
Source§fn default() -> ContainerDefinition
fn default() -> ContainerDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerDefinition
impl<'de> Deserialize<'de> for ContainerDefinition
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.
Source§impl List<ContainerQuery, ContainerDefinition> for Resource<ContainerDefinition>
impl List<ContainerQuery, ContainerDefinition> for Resource<ContainerDefinition>
Source§fn list(
&self,
params: Option<TParams>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn list( &self, params: Option<TParams>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Query a resource with optional query parameters. Read more
Source§fn list_all(
&self,
params: TParams,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn list_all( &self, params: TParams, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Query a resource with query parameters, continuing until the cursor is exhausted. Read more
Source§fn list_all_stream(
&self,
params: TParams,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn list_all_stream( &self, params: TParams, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
List 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 Freeze for ContainerDefinition
impl RefUnwindSafe for ContainerDefinition
impl Send for ContainerDefinition
impl Sync for ContainerDefinition
impl Unpin for ContainerDefinition
impl UnwindSafe for ContainerDefinition
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