pub struct Backend {
pub storage: VStorage,
pub fts: FTClient,
pub api: APIClient,
}
Fields§
§storage: VStorage
§fts: FTClient
§api: APIClient
Implementations§
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> 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