pub struct ProjectionParameter { /* private fields */ }Implementations§
Source§impl ProjectionParameter
impl ProjectionParameter
Sourcepub fn new(
key: impl AsRef<str>,
value: impl AsRef<str>,
) -> Result<Self, ProjectionParameterError>
pub fn new( key: impl AsRef<str>, value: impl AsRef<str>, ) -> Result<Self, ProjectionParameterError>
Creates a projection parameter from non-empty key and value text.
§Errors
Returns ProjectionParameterError::EmptyKey when the trimmed key is empty.
Returns ProjectionParameterError::EmptyValue when the trimmed value is empty.
pub fn key(&self) -> &str
pub fn value(&self) -> &str
Trait Implementations§
Source§impl Clone for ProjectionParameter
impl Clone for ProjectionParameter
Source§fn clone(&self) -> ProjectionParameter
fn clone(&self) -> ProjectionParameter
Returns a duplicate of the value. Read more
1.0.0 · 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 ProjectionParameter
impl Debug for ProjectionParameter
Source§impl Display for ProjectionParameter
impl Display for ProjectionParameter
Source§impl Hash for ProjectionParameter
impl Hash for ProjectionParameter
Source§impl Ord for ProjectionParameter
impl Ord for ProjectionParameter
Source§fn cmp(&self, other: &ProjectionParameter) -> Ordering
fn cmp(&self, other: &ProjectionParameter) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProjectionParameter
impl PartialEq for ProjectionParameter
Source§impl PartialOrd for ProjectionParameter
impl PartialOrd for ProjectionParameter
impl Eq for ProjectionParameter
impl StructuralPartialEq for ProjectionParameter
Auto Trait Implementations§
impl Freeze for ProjectionParameter
impl RefUnwindSafe for ProjectionParameter
impl Send for ProjectionParameter
impl Sync for ProjectionParameter
impl Unpin for ProjectionParameter
impl UnsafeUnpin for ProjectionParameter
impl UnwindSafe for ProjectionParameter
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