Struct ad4m_client::perspectives::PerspectivesClient
source · 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> ) -> 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 more