#[non_exhaustive]pub enum JobInput {
Url(String),
Event {
event_id: EventId,
relay: Option<RelayUrl>,
},
Job {
event_id: EventId,
relay: Option<RelayUrl>,
},
Text(String),
}Expand description
Input column of an i tag.
Each row’s spec layout is [head, value, kind, relay?, marker?]
where head == "i". The four kinds match the spec’s
url/event/job/text markers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Url(String)
url — fetch the data at this URL.
Event
event — process the referenced Nostr event.
Fields
Job
job — chain on top of a previous job’s output.
Text(String)
text — inline text payload.
Trait Implementations§
impl Eq for JobInput
impl StructuralPartialEq for JobInput
Auto Trait Implementations§
impl Freeze for JobInput
impl RefUnwindSafe for JobInput
impl Send for JobInput
impl Sync for JobInput
impl Unpin for JobInput
impl UnsafeUnpin for JobInput
impl UnwindSafe for JobInput
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.