pub struct ExtractionInput {
pub source: String,
pub content: String,
pub occurred_at: Timestamp,
pub recorded_at: Timestamp,
pub agent_id: AgentId,
pub session_id: SessionId,
pub repository: Option<String>,
pub branch: Option<String>,
pub locator: Option<String>,
pub digest: Option<String>,
}Fields§
§source: String§content: String§occurred_at: Timestamp§recorded_at: Timestamp§agent_id: AgentId§session_id: SessionId§repository: Option<String>§branch: Option<String>§locator: Option<String>§digest: Option<String>Implementations§
Source§impl ExtractionInput
impl ExtractionInput
Sourcepub fn new(
source: impl Into<String>,
content: impl Into<String>,
occurred_at: Timestamp,
recorded_at: Timestamp,
agent_id: AgentId,
session_id: SessionId,
) -> Result<Self>
pub fn new( source: impl Into<String>, content: impl Into<String>, occurred_at: Timestamp, recorded_at: Timestamp, agent_id: AgentId, session_id: SessionId, ) -> Result<Self>
Creates source material with caller-controlled temporal provenance.
§Errors
Rejects empty content, invalid source text, or future occurrence time.
pub fn in_repository(self, repository: impl Into<String>) -> Self
pub fn on_branch(self, branch: impl Into<String>) -> Self
pub fn with_locator(self, locator: impl Into<String>) -> Self
pub fn with_digest(self, digest: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ExtractionInput
impl Clone for ExtractionInput
Source§fn clone(&self) -> ExtractionInput
fn clone(&self) -> ExtractionInput
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 ExtractionInput
impl Debug for ExtractionInput
Source§impl<'de> Deserialize<'de> for ExtractionInput
impl<'de> Deserialize<'de> for ExtractionInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExtractionInput
Source§impl PartialEq for ExtractionInput
impl PartialEq for ExtractionInput
Source§impl Serialize for ExtractionInput
impl Serialize for ExtractionInput
impl StructuralPartialEq for ExtractionInput
Auto Trait Implementations§
impl Freeze for ExtractionInput
impl RefUnwindSafe for ExtractionInput
impl Send for ExtractionInput
impl Sync for ExtractionInput
impl Unpin for ExtractionInput
impl UnsafeUnpin for ExtractionInput
impl UnwindSafe for ExtractionInput
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