pub struct Artifacts { /* private fields */ }Expand description
The artifact registry (in-memory index of the durable records).
Implementations§
Source§impl Artifacts
impl Artifacts
pub fn new() -> Artifacts
Sourcepub fn create(
&mut self,
d: &Durable,
spec: NewArtifact<'_>,
) -> Result<Value, String>
pub fn create( &mut self, d: &Durable, spec: NewArtifact<'_>, ) -> Result<Value, String>
artifact.create.
Sourcepub fn get_value(&self, id: &str) -> Result<Value, String>
pub fn get_value(&self, id: &str) -> Result<Value, String>
artifact.get as a tool result: the metadata plus the inline content.
The sensitive flag rides along on the metadata so the caller’s own
redaction rules can act on it.
Sourcepub fn list(
&self,
prefix: Option<&str>,
limit: Option<usize>,
owner: Option<&str>,
) -> Value
pub fn list( &self, prefix: Option<&str>, limit: Option<usize>, owner: Option<&str>, ) -> Value
artifact.list.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Artifacts
impl RefUnwindSafe for Artifacts
impl Send for Artifacts
impl Sync for Artifacts
impl Unpin for Artifacts
impl UnsafeUnpin for Artifacts
impl UnwindSafe for Artifacts
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