pub struct Client<S: Storage + Clone = FsStorage> { /* private fields */ }Implementations§
Source§impl<S: Storage + Clone> Client<S>
impl<S: Storage + Clone> Client<S>
pub fn with_storage( phone_number: impl Into<String>, storage: S, config: Config, ) -> Self
pub fn from_inner(inner: HingeClient<S>) -> Self
pub fn with_secret_store(self, store: Arc<dyn SecretStore>) -> Self
pub fn inner(&self) -> &HingeClient<S>
pub fn inner_mut(&mut self) -> &mut HingeClient<S>
pub fn into_inner(self) -> HingeClient<S>
pub fn session(&self) -> Session
pub fn set_recs_fetch_config(&mut self, config: RecsFetchConfig)
pub fn set_public_ids_batch_size(&mut self, batch_size: usize)
pub fn auth(&mut self) -> AuthApi<'_, S>
pub fn recommendations(&mut self) -> RecommendationsApi<'_, S>
pub fn profiles(&mut self) -> ProfilesApi<'_, S>
pub fn likes(&mut self) -> LikesApi<'_, S>
pub fn ratings(&mut self) -> RatingsApi<'_, S>
pub fn prompts(&mut self) -> PromptsApi<'_, S>
pub fn connections(&mut self) -> ConnectionsApi<'_, S>
pub fn settings(&mut self) -> SettingsApi<'_, S>
pub fn chat(&mut self) -> ChatApi<'_, S>
pub fn persistence(&mut self) -> PersistenceApi<'_, S>
pub fn raw(&mut self) -> RawApi<'_, S>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Client<S>where
S: Freeze,
impl<S = FsStorage> !RefUnwindSafe for Client<S>
impl<S> Send for Client<S>where
S: Send,
impl<S> Sync for Client<S>where
S: Sync,
impl<S> Unpin for Client<S>where
S: Unpin,
impl<S> UnsafeUnpin for Client<S>where
S: UnsafeUnpin,
impl<S = FsStorage> !UnwindSafe for Client<S>
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