pub struct Parameter<'a>(pub &'a str);Tuple Fields§
§0: &'a strImplementations§
source§impl<'a> Parameter<'a>
impl<'a> Parameter<'a>
sourcepub async fn get(&self, pool: &PgPool) -> Result<Option<Value>, Error>
pub async fn get(&self, pool: &PgPool) -> Result<Option<Value>, Error>
Get the current Value for this parameter.
If you want the full/raw Setting, use Setting::get instead.
Trait Implementations§
source§impl<'a> PartialEq for Parameter<'a>
impl<'a> PartialEq for Parameter<'a>
impl<'a> Copy for Parameter<'a>
impl<'a> Eq for Parameter<'a>
impl<'a> StructuralEq for Parameter<'a>
impl<'a> StructuralPartialEq for Parameter<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Parameter<'a>
impl<'a> Send for Parameter<'a>
impl<'a> Sync for Parameter<'a>
impl<'a> Unpin for Parameter<'a>
impl<'a> UnwindSafe for Parameter<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.