pub struct ViewCreateDefinition {
pub external_id: String,
pub space: String,
pub name: Option<String>,
pub description: Option<String>,
pub filter: Option<AdvancedFilter>,
pub implements: Option<Vec<TaggedViewReference>>,
pub used_for: Option<UsedFor>,
pub version: String,
pub properties: HashMap<String, CreateViewPropertyOrConnectionDefinition>,
}Expand description
Create a new view.
Fields§
§external_id: StringExternal ID identifying this view.
The values Query, Mutation, Subscription, String, Int32, Int64, Int,
Float32, Float64, Float, Timestamp, JSONObject, Date, Numeric,
Boolean, PageInfo, File, Sequence and TimeSeries are reserved.
space: StringSpace this view belongs to.
name: Option<String>Human readsable name for the view.
description: Option<String>Description of the content and use of this view.
filter: Option<AdvancedFilter>Filter for instances included in this view.
implements: Option<Vec<TaggedViewReference>>List of views this view implements.
used_for: Option<UsedFor>Whether this view should be used for nodes, edges, or both.
version: StringView version.
properties: HashMap<String, CreateViewPropertyOrConnectionDefinition>Collection of properties and connections for this view.
Trait Implementations§
Source§impl Clone for ViewCreateDefinition
impl Clone for ViewCreateDefinition
Source§fn clone(&self) -> ViewCreateDefinition
fn clone(&self) -> ViewCreateDefinition
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<ViewCreateDefinition, ViewDefinition> for Resource<ViewDefinition>
impl Create<ViewCreateDefinition, ViewDefinition> for Resource<ViewDefinition>
Source§impl Debug for ViewCreateDefinition
impl Debug for ViewCreateDefinition
Source§impl Default for ViewCreateDefinition
impl Default for ViewCreateDefinition
Source§fn default() -> ViewCreateDefinition
fn default() -> ViewCreateDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewCreateDefinition
impl<'de> Deserialize<'de> for ViewCreateDefinition
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<ViewDefinition> for ViewCreateDefinition
impl From<ViewDefinition> for ViewCreateDefinition
Source§fn from(value: ViewDefinition) -> Self
fn from(value: ViewDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ViewCreateDefinition
impl RefUnwindSafe for ViewCreateDefinition
impl Send for ViewCreateDefinition
impl Sync for ViewCreateDefinition
impl Unpin for ViewCreateDefinition
impl UnwindSafe for ViewCreateDefinition
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