pub struct UpdateArgs {
pub id: String,
pub title: Option<String>,
pub content: Option<String>,
pub tier: Option<String>,
pub namespace: Option<String>,
pub tags: Option<String>,
pub priority: Option<i32>,
pub confidence: Option<f64>,
pub expires_at: Option<String>,
pub metadata: Option<String>,
pub source_uri: Option<String>,
pub expected_version: Option<i64>,
}Fields§
§id: String§title: Option<String>§content: Option<String>§tier: Option<String>§namespace: Option<String>§priority: Option<i32>§confidence: Option<f64>§expires_at: Option<String>Expiry timestamp (RFC3339), or empty string to clear
metadata: Option<String>v0.7.0 F2.4 (#1428) — JSON metadata patch (object). Replaces the
existing metadata blob field-by-field. Pass '{"agent_id":"...", "scope":"team"}'. Validates as a JSON object.
source_uri: Option<String>v0.7.0 F2.4 (#1428) — Form-4 first-class URI pointer. Accepted
schemes: uri: / doc: / file:. Validates through
crate::validate::validate_source_uri.
expected_version: Option<i64>v0.7.0 F2.4 (#1428) — optimistic-concurrency gate per #884.
When set, the update only proceeds if the row’s current
version field matches; mismatch returns VERSION_CONFLICT.
Unset (legacy CLI behaviour) skips the gate.
Trait Implementations§
Source§impl Args for UpdateArgs
impl Args for UpdateArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for UpdateArgs
impl FromArgMatches for UpdateArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for UpdateArgs
impl RefUnwindSafe for UpdateArgs
impl Send for UpdateArgs
impl Sync for UpdateArgs
impl Unpin for UpdateArgs
impl UnsafeUnpin for UpdateArgs
impl UnwindSafe for UpdateArgs
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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