pub struct ArtifactInput { /* private fields */ }Expand description
Durable, unresolved artifact input carried through tools and conversations.
Implementations§
Source§impl ArtifactInput
impl ArtifactInput
Sourcepub const fn new(
artifact: ArtifactRef,
source: ArtifactInputSource,
) -> ArtifactInput
pub const fn new( artifact: ArtifactRef, source: ArtifactInputSource, ) -> ArtifactInput
Construct an artifact input from validated values.
Sourcepub fn with_instruction(self, instruction: ArtifactInstruction) -> ArtifactInput
pub fn with_instruction(self, instruction: ArtifactInstruction) -> ArtifactInput
Attach a validated model-facing instruction.
pub fn artifact(&self) -> &ArtifactRef
pub const fn source(&self) -> ArtifactInputSource
pub fn instruction(&self) -> Option<&ArtifactInstruction>
Trait Implementations§
Source§impl Clone for ArtifactInput
impl Clone for ArtifactInput
Source§fn clone(&self) -> ArtifactInput
fn clone(&self) -> ArtifactInput
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 ArtifactInput
impl Debug for ArtifactInput
Source§impl<'de> Deserialize<'de> for ArtifactInput
impl<'de> Deserialize<'de> for ArtifactInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArtifactInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArtifactInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArtifactInput
Source§impl Hash for ArtifactInput
impl Hash for ArtifactInput
Source§impl PartialEq for ArtifactInput
impl PartialEq for ArtifactInput
Source§impl Serialize for ArtifactInput
impl Serialize for ArtifactInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ArtifactInput
Auto Trait Implementations§
impl Forget for ArtifactInput
impl Freeze for ArtifactInputwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<(Indexed, Indexed)>: Freeze,
impl Move for ArtifactInput
impl RefUnwindSafe for ArtifactInput
impl Send for ArtifactInput
impl Sync for ArtifactInputwhere
RawVecInner: Sync,
impl Unpin for ArtifactInput
impl UnsafeUnpin for ArtifactInputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(Indexed, Indexed)>: UnsafeUnpin,
impl UnwindSafe for ArtifactInput
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