pub struct AdaptClient { /* private fields */ }Expand description
Adapt operations over membrane adapt .... status, adjudicate_taste and mine_session
have no CLI equivalent and return an explicit error.
Implementations§
Source§impl AdaptClient
impl AdaptClient
pub fn new(handle: MembraneHandle) -> Self
Sourcepub fn observe_execution(&self, request: Value) -> Result<Value, MembraneError>
pub fn observe_execution(&self, request: Value) -> Result<Value, MembraneError>
adapt observe with an AdaptObservationRequestV1 document.
pub fn status(&self, _scope: impl Into<String>) -> Result<Value, MembraneError>
pub fn review_taste( &self, input: PathBuf, installation_id: impl Into<String>, canonical_pool_sha256: Option<String>, created_at: impl Into<String>, ) -> Result<Value, MembraneError>
pub fn adjudicate_taste( &self, _manifest: PathBuf, _decisions: PathBuf, _validated_at: impl Into<String>, ) -> Result<Value, MembraneError>
pub fn apply_insights( &self, input: PathBuf, installation_id: impl Into<String>, dry_run: bool, ) -> Result<Value, MembraneError>
pub fn apply_taste( &self, manifest: PathBuf, dry_run: bool, ) -> Result<Value, MembraneError>
pub fn recall( &self, query: impl Into<String>, scope: impl Into<String>, k: usize, dimensions: Vec<String>, ) -> Result<Value, MembraneError>
Trait Implementations§
Auto Trait Implementations§
impl Forget for AdaptClient
impl Freeze for AdaptClient
impl Move for AdaptClient
impl RefUnwindSafe for AdaptClient
impl Send for AdaptClient
impl Sync for AdaptClient
impl Unpin for AdaptClient
impl UnsafeUnpin for AdaptClient
impl UnwindSafe for AdaptClient
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more