pub struct RelationInstances { /* private fields */ }
Implementations§
Source§impl RelationInstances
impl RelationInstances
pub fn new(client: Arc<ReactiveGraphClient>) -> Self
pub async fn search( &self, search_query: SearchRelationInstancesVariables, ) -> Result<Option<Vec<RelationInstance>>, ReactiveGraphClientExecutionError>
pub async fn get_by_id<ID: Into<RelationInstanceId>>( &self, id: ID, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn set_property<ID: Into<RelationInstanceId>, S: Into<String>, V: Into<Value>>( &self, id: ID, name: S, value: V, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn add_property<ID: Into<RelationInstanceId>, PT: Into<PropertyType>>( &self, id: ID, property_type: PT, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn remove_property<ID: Into<RelationInstanceId>, S: Into<String>>( &self, id: ID, property_name: S, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn add_component<ID: Into<RelationInstanceId>, C: Into<ComponentTypeId>>( &self, id: ID, component_ty: C, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn remove_component<ID: Into<RelationInstanceId>, C: Into<ComponentTypeId>>( &self, id: ID, component_ty: C, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn create<ID: Into<RelationInstanceId>>( &self, id: ID, description: Option<String>, properties: PropertyInstances, ) -> Result<Option<RelationInstance>, ReactiveGraphClientExecutionError>
pub async fn delete<ID: Into<RelationInstanceId>>( &self, id: ID, ) -> Result<Option<bool>, ReactiveGraphClientExecutionError>
Auto Trait Implementations§
impl Freeze for RelationInstances
impl !RefUnwindSafe for RelationInstances
impl Send for RelationInstances
impl Sync for RelationInstances
impl Unpin for RelationInstances
impl !UnwindSafe for RelationInstances
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more