pub struct Chain { /* private fields */ }Implementations§
Source§impl Chain
impl Chain
pub fn field(&self, key: impl Into<String>) -> Self
pub fn path(&self) -> String
pub fn put<T: Serialize>(&self, value: T) -> Result<()>
pub fn put_bytes(&self, bytes: impl AsRef<[u8]>) -> Result<()>
pub fn once_json(&self) -> Result<Option<JsonValue>>
pub fn once_bytes(&self) -> Result<Option<Vec<u8>>>
pub fn unset(&self) -> Result<()>
pub fn set<T: Serialize>(&self, value: T) -> Result<String>
pub fn set_bytes(&self, bytes: impl AsRef<[u8]>) -> Result<String>
pub fn remove<T: Serialize>(&self, value: T) -> Result<String>
pub fn put_blob( &self, data: impl AsRef<[u8]>, media_type: Option<&str>, ) -> Result<BlobRef>
pub fn once_blob_ref(&self) -> Result<Option<BlobRef>>
pub fn get_blob(&self) -> Result<Option<StoredBlob>>
pub fn map(&self) -> Result<Vec<MapEntry>>
pub fn lex(&self) -> LexBuilder
pub fn scan(&self, spec: LexSpec) -> Result<Vec<LexEntry>>
pub fn find(&self) -> QueryBuilder
pub fn query(&self, spec: QuerySpec) -> Result<Vec<MapEntry>>
pub fn first(&self, spec: QuerySpec) -> Result<Option<MapEntry>>
pub fn subscribe(&self) -> Result<Subscription>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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