pub struct Label {
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 Label
impl<'de> Deserialize<'de> for Label
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 Label
impl PartialEq for Label
impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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