pub struct Store<'a, T, Repo, Access> { /* private fields */ }Expand description
Storage for collaborative objects of a specific type T in a single repository.
Implementations§
Source§impl<'a, 'b, T, Repo, Signer> Store<'a, T, Repo, WriteAs<'b, Signer>>
impl<'a, 'b, T, Repo, Signer> Store<'a, T, Repo, WriteAs<'b, Signer>>
pub fn transaction( &self, actions: Vec<<T as Cob>::Action>, embeds: Vec<Embed<Uri>>, ) -> Transaction<T, Repo>
Source§impl<'a, 'b, T, Repo, Signer> Store<'a, T, Repo, WriteAs<'b, Signer>>
impl<'a, 'b, T, Repo, Signer> Store<'a, T, Repo, WriteAs<'b, Signer>>
Sourcepub fn update(
&mut self,
type_name: &TypeName,
object_id: ObjectId,
message: &str,
actions: impl Into<NonEmpty<<T as Cob>::Action>>,
embeds: Vec<Embed<Uri>>,
) -> Result<Updated<T>, Error>
pub fn update( &mut self, type_name: &TypeName, object_id: ObjectId, message: &str, actions: impl Into<NonEmpty<<T as Cob>::Action>>, embeds: Vec<Embed<Uri>>, ) -> Result<Updated<T>, Error>
Update an object.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, Repo, Access> Freeze for Store<'a, T, Repo, Access>where
Access: Freeze,
impl<'a, T, Repo, Access> RefUnwindSafe for Store<'a, T, Repo, Access>
impl<'a, T, Repo, Access> Send for Store<'a, T, Repo, Access>
impl<'a, T, Repo, Access> Sync for Store<'a, T, Repo, Access>
impl<'a, T, Repo, Access> Unpin for Store<'a, T, Repo, Access>
impl<'a, T, Repo, Access> UnsafeUnpin for Store<'a, T, Repo, Access>where
Access: UnsafeUnpin,
impl<'a, T, Repo, Access> UnwindSafe for Store<'a, T, Repo, Access>
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> 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