pub struct PreferenceScope {
pub resolution: bool,
pub representation: bool,
pub missing: bool,
pub max_affected: bool,
}Expand description
Which preferences a given request could honour.
A preference that cannot apply to the request is not reported back, however plainly it was asked for – saying it was applied when it was ignored is worse than saying nothing.
Fields§
§resolution: boolInsert, where duplicates can be resolved.
representation: boolInsert or update, where a missing column can take a default.
missing: boolInsert or update.
max_affected: boolUpdate, delete or a function call.
Implementations§
Trait Implementations§
Source§impl Clone for PreferenceScope
impl Clone for PreferenceScope
impl Copy for PreferenceScope
Source§impl Debug for PreferenceScope
impl Debug for PreferenceScope
Auto Trait Implementations§
impl Freeze for PreferenceScope
impl RefUnwindSafe for PreferenceScope
impl Send for PreferenceScope
impl Sync for PreferenceScope
impl Unpin for PreferenceScope
impl UnsafeUnpin for PreferenceScope
impl UnwindSafe for PreferenceScope
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