pub struct RecordView {
pub uri: String,
pub cid: String,
pub value: Value,
}Expand description
One entry in the listRecords response.
The lexicon requires a cid on every row; see CreateRecordResponse.
Fields§
§uri: StringThe at:// URI of this record.
cid: StringThe CID naming this record’s contents.
value: ValueThe stored record, byte for byte as it was written.
Implementations§
Source§impl RecordView
impl RecordView
Sourcepub fn new(
did: &str,
collection: &str,
rkey: &str,
value: Value,
) -> Result<Self, RecordError>
pub fn new( did: &str, collection: &str, rkey: &str, value: Value, ) -> Result<Self, RecordError>
Renders one stored record for the wire, naming it by its contents.
Fails only for a record the atproto data model cannot encode, which
the write path refuses before storing anything; see
didbot_pds::content_id.
Trait Implementations§
Source§impl Clone for RecordView
impl Clone for RecordView
Source§fn clone(&self) -> RecordView
fn clone(&self) -> RecordView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordView
impl Debug for RecordView
Source§impl<'de> Deserialize<'de> for RecordView
impl<'de> Deserialize<'de> for RecordView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RecordView
impl PartialEq for RecordView
Source§fn eq(&self, other: &RecordView) -> bool
fn eq(&self, other: &RecordView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RecordView
impl Serialize for RecordView
impl StructuralPartialEq for RecordView
Auto Trait Implementations§
impl Freeze for RecordView
impl RefUnwindSafe for RecordView
impl Send for RecordView
impl Sync for RecordView
impl Unpin for RecordView
impl UnsafeUnpin for RecordView
impl UnwindSafe for RecordView
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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