Struct v_common::module::veda_backend::Backend
source · pub struct Backend {
pub storage: VStorage,
pub fts: FTClient,
pub mstorage_api: MStorageClient,
pub auth_api: AuthClient,
}Fields§
§storage: VStorage§fts: FTClient§mstorage_api: MStorageClient§auth_api: AuthClientImplementations§
source§impl Backend
impl Backend
pub fn create(storage_mode: StorageMode, use_remote_storage: bool) -> Self
pub fn get_sys_ticket_id(&mut self) -> Result<String, i32>
pub fn get_literal_of_link( &mut self, indv: &mut Individual, link: &str, field: &str, to: &mut Individual, ) -> Option<String>
pub fn get_literals_of_link( &mut self, indv: &mut Individual, link: &str, field: &str, ) -> Vec<String>
pub fn get_datetime_of_link( &mut self, indv: &mut Individual, link: &str, field: &str, to: &mut Individual, ) -> Option<i64>
pub fn get_individual_h(&mut self, uri: &str) -> Option<Box<Individual>>
pub fn get_individual_s(&mut self, uri: &str) -> Option<Individual>
pub fn get_individual<'a>( &mut self, uri: &str, iraw: &'a mut Individual, ) -> Option<&'a mut Individual>
pub fn get_ticket_from_db(&mut self, id: &str) -> Ticket
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backend
impl !RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl !UnwindSafe for Backend
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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