pub struct PerspectivesClient { /* private fields */ }
Implementations§
Source§impl PerspectivesClient
impl PerspectivesClient
pub fn new(info: Arc<ClientInfo>) -> Self
pub async fn all(&self) -> Result<Vec<AllPerspectives>>
pub async fn add(&self, name: String) -> Result<String>
pub async fn remove(&self, uuid: String) -> Result<()>
pub async fn add_link( &self, uid: String, source: String, target: String, predicate: Option<String>, status: Option<String>, ) -> Result<AddLinkPerspectiveAddLink>
pub async fn remove_link(&self, uid: String, link: LinkExpression) -> Result<()>
pub async fn query_links( &self, uuid: String, source: Option<String>, target: Option<String>, predicate: Option<String>, from_date: Option<NaiveDateTime>, until_date: Option<NaiveDateTime>, limit: Option<f64>, ) -> Result<Vec<QueryLinksPerspectiveQueryLinks>>
pub async fn infer(&self, uuid: String, prolog_query: String) -> Result<Value>
pub async fn watch( &self, id: String, link_callback: Box<dyn Fn(LinkExpression)>, ) -> Result<()>
pub async fn snapshot(&self, uuid: String) -> Result<Perspective>
pub async fn get(&self, uuid: String) -> Result<PerspectiveProxy>
Trait Implementations§
Source§impl Clone for PerspectivesClient
impl Clone for PerspectivesClient
Source§fn clone(&self) -> PerspectivesClient
fn clone(&self) -> PerspectivesClient
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PerspectivesClient
impl RefUnwindSafe for PerspectivesClient
impl Send for PerspectivesClient
impl Sync for PerspectivesClient
impl Unpin for PerspectivesClient
impl UnwindSafe for PerspectivesClient
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