pub struct LabelData {
pub cid: Option<Cid>,
pub cts: Datetime,
pub exp: Option<Datetime>,
pub neg: Option<bool>,
pub sig: Option<Vec<u8>>,
pub src: Did,
pub uri: String,
pub val: String,
pub ver: Option<i64>,
}
Expand description
Metadata tag on an atproto resource (eg, repo or record).
Fields§
§cid: Option<Cid>
Optionally, CID specifying the specific version of ‘uri’ resource this label applies to.
cts: Datetime
Timestamp when this label was created.
exp: Option<Datetime>
Timestamp at which this label expires (no longer applies).
neg: Option<bool>
If true, this is a negation label, overwriting a previous label.
sig: Option<Vec<u8>>
Signature of dag-cbor encoded label.
src: Did
DID of the actor who created this label.
uri: String
AT URI of the record, repository (account), or other resource that this label applies to.
val: String
The short string name of the value or type of this label.
ver: Option<i64>
The AT Protocol version of the label object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LabelData
impl<'de> Deserialize<'de> for LabelData
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
impl Eq for LabelData
impl StructuralPartialEq for LabelData
Auto Trait Implementations§
impl Freeze for LabelData
impl RefUnwindSafe for LabelData
impl Send for LabelData
impl Sync for LabelData
impl Unpin for LabelData
impl UnwindSafe for LabelData
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.