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: DatetimeTimestamp 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: DidDID of the actor who created this label.
uri: StringAT URI of the record, repository (account), or other resource that this label applies to.
val: StringThe 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.