[−][src]Struct sync15::BsoRecord
Fields
id: Guid
collection: String
modified: ServerTimestamp
sortindex: Option<i32>
ttl: Option<u32>
payload: T
Implementations
impl<T> BsoRecord<T>
[src]
pub fn map_payload<P, F>(self, mapper: F) -> BsoRecord<P> where
F: FnOnce(T) -> P,
[src]
F: FnOnce(T) -> P,
pub fn with_payload<P>(self, payload: P) -> BsoRecord<P>
[src]
pub fn new_record(id: String, coll: String, payload: T) -> BsoRecord<T>
[src]
pub fn try_map_payload<P, E>(
self,
mapper: impl FnOnce(T) -> Result<P, E>
) -> Result<BsoRecord<P>, E>
[src]
self,
mapper: impl FnOnce(T) -> Result<P, E>
) -> Result<BsoRecord<P>, E>
pub fn map_payload_or<P>(
self,
mapper: impl FnOnce(T) -> Option<P>
) -> Option<BsoRecord<P>>
[src]
self,
mapper: impl FnOnce(T) -> Option<P>
) -> Option<BsoRecord<P>>
pub fn into_timestamped_payload(self) -> (T, ServerTimestamp)
[src]
impl<T> BsoRecord<Option<T>>
[src]
pub fn transpose(self) -> Option<BsoRecord<T>>
[src]
Helper to improve ergonomics for handling records that might be tombstones.
impl<T, E> BsoRecord<Result<T, E>>
[src]
impl BsoRecord<Payload>
[src]
pub fn from_payload(payload: Payload, collection: impl Into<String>) -> Self
[src]
impl BsoRecord<EncryptedPayload>
[src]
pub fn decrypt(self, key: &KeyBundle) -> Result<CleartextBso>
[src]
pub fn decrypt_as<T>(self, key: &KeyBundle) -> Result<BsoRecord<T>> where
T: Deserialize<'a>,
[src]
T: Deserialize<'a>,
impl BsoRecord<Payload>
[src]
pub fn encrypt(self, key: &KeyBundle) -> Result<EncryptedBso>
[src]
pub fn into_record<T>(self) -> Result<BsoRecord<T>> where
T: Deserialize<'a>,
[src]
T: Deserialize<'a>,
Trait Implementations
impl<T: Clone> Clone for BsoRecord<T>
[src]
impl<T: Debug> Debug for BsoRecord<T>
[src]
impl<T> Deref for BsoRecord<T>
[src]
impl<T> DerefMut for BsoRecord<T>
[src]
impl<'de, T> Deserialize<'de> for BsoRecord<T> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: PartialEq> PartialEq<BsoRecord<T>> for BsoRecord<T>
[src]
impl<T> Serialize for BsoRecord<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T> StructuralPartialEq for BsoRecord<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for BsoRecord<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for BsoRecord<T> where
T: Send,
T: Send,
impl<T> Sync for BsoRecord<T> where
T: Sync,
T: Sync,
impl<T> Unpin for BsoRecord<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for BsoRecord<T> where
T: UnwindSafe,
T: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,