[−][src]Struct json_surf::registry::Surfer
Surfer: Client API
Implementations
impl Surfer
[src]
pub fn home(&self) -> &String
[src]
Location of home
pub fn which_index(&self, name: &str) -> Option<String>
[src]
Location of Index
pub fn insert_struct<T: Serialize>(
&mut self,
name: &str,
data: &T
) -> Result<(), IndexError>
[src]
&mut self,
name: &str,
data: &T
) -> Result<(), IndexError>
Inserts a struct
pub fn insert_structs<T: Serialize>(
&mut self,
name: &str,
payload: &Vec<T>
) -> Result<(), IndexError>
[src]
&mut self,
name: &str,
payload: &Vec<T>
) -> Result<(), IndexError>
Inserts a structs
pub fn read_string(
&mut self,
name: &str,
query: &str,
limit: Option<usize>,
score: Option<f32>
) -> Result<Option<Vec<String>>, IndexError>
[src]
&mut self,
name: &str,
query: &str,
limit: Option<usize>,
score: Option<f32>
) -> Result<Option<Vec<String>>, IndexError>
Reads as string
pub fn read_structs<T: Serialize + DeserializeOwned>(
&mut self,
name: &str,
query: &str,
limit: Option<usize>,
score: Option<f32>
) -> Result<Option<Vec<T>>, IndexError>
[src]
&mut self,
name: &str,
query: &str,
limit: Option<usize>,
score: Option<f32>
) -> Result<Option<Vec<T>>, IndexError>
Reads as struct
impl Surfer
[src]
Panics if somethings goes wrong
pub fn new(builder: SurferBuilder) -> Self
[src]
Trait Implementations
impl TryFrom<SurferBuilder> for Surfer
[src]
type Error = IndexError
The type returned in the event of a conversion error.
fn try_from(builder: SurferBuilder) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Surfer
impl Send for Surfer
impl Sync for Surfer
impl Unpin for Surfer
impl !UnwindSafe for Surfer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,