pub struct Extractors<'a> { /* private fields */ }Expand description
/v1/extractors (+ /v1/selectors/:sid/extractors).
Implementations§
Source§impl Extractors<'_>
impl Extractors<'_>
Sourcepub async fn list(&self, selector_id: i64) -> Result<Page<Extractor>>
pub async fn list(&self, selector_id: i64) -> Result<Page<Extractor>>
GET /v1/selectors/:sid/extractors (bare array, normalized to Page).
Sourcepub async fn create(&self, body: Value) -> Result<Extractor>
pub async fn create(&self, body: Value) -> Result<Extractor>
POST /v1/extractors — body carries target_selector_id + output_name.
Sourcepub async fn update(&self, extractor_id: i64, patch: Value) -> Result<Extractor>
pub async fn update(&self, extractor_id: i64, patch: Value) -> Result<Extractor>
PATCH /v1/extractors/:id.
Trait Implementations§
Source§impl<'a> Clone for Extractors<'a>
impl<'a> Clone for Extractors<'a>
Source§fn clone(&self) -> Extractors<'a>
fn clone(&self) -> Extractors<'a>
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 moreimpl<'a> Copy for Extractors<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Extractors<'a>
impl<'a> !UnwindSafe for Extractors<'a>
impl<'a> Freeze for Extractors<'a>
impl<'a> Send for Extractors<'a>
impl<'a> Sync for Extractors<'a>
impl<'a> Unpin for Extractors<'a>
impl<'a> UnsafeUnpin for Extractors<'a>
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