pub struct LabelerOpts {
pub did: String,
pub redirect: bool,
}Expand description
A single labeler entry, mirroring TS Agent’s AtprotoLabelerDef.
Fields§
§did: StringThe labeler’s DID (e.g. did:plc:<labeler>).
redirect: boolWhen true, this labeler is redirected to (sent as
atproto-accept-labelers: did;redirect). Matches TS behaviour.
Trait Implementations§
Source§impl Clone for LabelerOpts
impl Clone for LabelerOpts
Source§fn clone(&self) -> LabelerOpts
fn clone(&self) -> LabelerOpts
Returns a duplicate of the value. Read more
1.0.0 · 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 LabelerOpts
impl Debug for LabelerOpts
Source§impl PartialEq for LabelerOpts
impl PartialEq for LabelerOpts
impl Eq for LabelerOpts
impl StructuralPartialEq for LabelerOpts
Auto Trait Implementations§
impl Freeze for LabelerOpts
impl RefUnwindSafe for LabelerOpts
impl Send for LabelerOpts
impl Sync for LabelerOpts
impl Unpin for LabelerOpts
impl UnsafeUnpin for LabelerOpts
impl UnwindSafe for LabelerOpts
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.