pub struct SourcePatch {
pub display_name: Option<String>,
pub origin_url: Option<String>,
pub retention_count: Option<i32>,
}Expand description
Sparse patch applied by update — Some(value) updates the column,
None leaves it untouched.
Fields§
§display_name: Option<String>New display label, when set.
origin_url: Option<String>New origin URL, when set. (Use Some(None) semantics by passing an
empty string here is NOT supported — None here means “no change”.)
retention_count: Option<i32>New retention count, when set. The DB CHECK constraint clamps to
[1, 50]; callers should validate before calling.
Trait Implementations§
Source§impl Clone for SourcePatch
impl Clone for SourcePatch
Source§fn clone(&self) -> SourcePatch
fn clone(&self) -> SourcePatch
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 SourcePatch
impl Debug for SourcePatch
Source§impl Default for SourcePatch
impl Default for SourcePatch
Source§fn default() -> SourcePatch
fn default() -> SourcePatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourcePatch
impl RefUnwindSafe for SourcePatch
impl Send for SourcePatch
impl Sync for SourcePatch
impl Unpin for SourcePatch
impl UnsafeUnpin for SourcePatch
impl UnwindSafe for SourcePatch
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> 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