pub enum ReportTarget {
Event {
id: EventId,
author: PublicKey,
report_type: Option<ReportType>,
},
Profile {
pubkey: PublicKey,
report_type: Option<ReportType>,
},
Blob {
hash: String,
report_type: Option<ReportType>,
host_event: EventId,
host_report_type: Option<ReportType>,
servers: Vec<Url>,
},
}Expand description
What is being reported.
Variants§
Event
e tag — reports a specific event. The p tag still
identifies the event’s author per spec.
Fields
Note author. The p tag is required by spec even when an
e tag is present.
§
report_type: Option<ReportType>Optional ReportType carried on the e tag.
Profile
p-only tag — reports a profile.
Fields
§
report_type: Option<ReportType>ReportType token. impersonation is only meaningful on
profile reports per spec.
Blob
x tag — reports a blob by hash. Per spec, an e tag with
the host event id MUST accompany the blob report; servers
are optional URL hints pointing at media stores.
Fields
§
report_type: Option<ReportType>Type token associated with the blob.
§
host_report_type: Option<ReportType>Host event’s report type token (may differ from
Self::Blob::report_type).
Trait Implementations§
Source§impl Clone for ReportTarget
impl Clone for ReportTarget
Source§fn clone(&self) -> ReportTarget
fn clone(&self) -> ReportTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReportTarget
impl Debug for ReportTarget
impl Eq for ReportTarget
Source§impl PartialEq for ReportTarget
impl PartialEq for ReportTarget
impl StructuralPartialEq for ReportTarget
Auto Trait Implementations§
impl Freeze for ReportTarget
impl RefUnwindSafe for ReportTarget
impl Send for ReportTarget
impl Sync for ReportTarget
impl Unpin for ReportTarget
impl UnsafeUnpin for ReportTarget
impl UnwindSafe for ReportTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.