pub struct Label {
pub cid: Option<Cid>,
pub cts: Datetime,
pub neg: Option<bool>,
pub src: Did,
pub uri: String,
pub val: String,
}
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.
neg: Option<bool>
If true, this is a negation label, overwriting a previous 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.
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 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