pub struct ViewDefinition {
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 version: String,
pub created_time: i64,
pub last_updated_time: i64,
pub writable: bool,
pub used_for: UsedFor,
pub properties: HashMap<String, ViewDefinitionProperties>,
}Expand description
Definition of a view.
Fields§
§external_id: StringView external ID.
space: StringView space.
name: Option<String>Human readable name.
description: Option<String>Description for contents and intended use of view.
filter: Option<AdvancedFilter>Filter for instances in view.
implements: Option<Vec<TaggedViewReference>>List of views this view implements.
version: StringVersion of view.
created_time: i64Time this view was created, in milliseconds since epoch.
last_updated_time: i64Time this view was last modified, in milliseconds since epoch.
writable: boolWhether this view can be written to, i.e. it maps all non-nullable properties.
used_for: UsedForWhether this view can be used for nodes, edges, or both.
properties: HashMap<String, ViewDefinitionProperties>List of properties and connections in this view.
Trait Implementations§
Source§impl Clone for ViewDefinition
impl Clone for ViewDefinition
Source§fn clone(&self) -> ViewDefinition
fn clone(&self) -> ViewDefinition
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 ViewDefinition
impl Debug for ViewDefinition
Source§impl Default for ViewDefinition
impl Default for ViewDefinition
Source§fn default() -> ViewDefinition
fn default() -> ViewDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewDefinition
impl<'de> Deserialize<'de> for ViewDefinition
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.
Source§impl List<ViewQuery, ViewDefinition> for Resource<ViewDefinition>
impl List<ViewQuery, ViewDefinition> for Resource<ViewDefinition>
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 ViewDefinition
impl RefUnwindSafe for ViewDefinition
impl Send for ViewDefinition
impl Sync for ViewDefinition
impl Unpin for ViewDefinition
impl UnwindSafe for ViewDefinition
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