pub struct PerspectiveProxy { /* private fields */ }
Implementations§
Source§impl PerspectiveProxy
impl PerspectiveProxy
pub fn new(client: PerspectivesClient, perspective_uuid: String) -> Self
pub async fn add_link( &self, source: String, target: String, predicate: Option<String>, status: Option<String>, ) -> Result<AddLinkPerspectiveAddLink>
pub async fn get( &self, 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, prolog_query: String) -> Result<Value>
pub async fn add_dna( &self, name: String, dna: String, dna_type: String, ) -> Result<()>
pub async fn get_dna(&self) -> Result<Vec<String>>
pub async fn get_single_target( &self, source: String, predicate: String, ) -> Result<String>
pub async fn set_single_target( &self, source: String, predicate: String, target: String, ) -> Result<()>
pub async fn subject_classes(&self) -> Result<Vec<String>>
pub async fn subject_class_properties( &self, class: &String, ) -> Result<Vec<String>>
pub async fn subject_class_collections( &self, class: &String, ) -> Result<Vec<String>>
pub async fn create_subject(&self, class: &String, base: &str) -> Result<()>
pub async fn is_subject_instance( &self, class: &String, base: &String, ) -> Result<bool>
pub async fn get_subject( &self, class: &String, base: &String, ) -> Result<SubjectProxy<'_>>
pub async fn get_subject_classes(&self, base: &String) -> Result<Vec<String>>
pub async fn execute_action( &self, action: &str, base: &str, params: Option<BTreeMap<&str, &String>>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for PerspectiveProxy
impl RefUnwindSafe for PerspectiveProxy
impl Send for PerspectiveProxy
impl Sync for PerspectiveProxy
impl Unpin for PerspectiveProxy
impl UnwindSafe for PerspectiveProxy
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