#[non_exhaustive]pub struct ApplyHash {
pub hash_function: Option<HashFunction>,
/* private fields */
}Expand description
Apply a hash function on the value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hash_function: Option<HashFunction>Implementations§
Source§impl ApplyHash
impl ApplyHash
pub fn new() -> Self
Sourcepub fn set_hash_function<T: Into<Option<HashFunction>>>(self, v: T) -> Self
pub fn set_hash_function<T: Into<Option<HashFunction>>>(self, v: T) -> Self
Sets the value of hash_function.
Note that all the setters affecting hash_function are mutually
exclusive.
Sourcepub fn uuid_from_bytes(&self) -> Option<&Box<Empty>>
pub fn uuid_from_bytes(&self) -> Option<&Box<Empty>>
The value of hash_function
if it holds a UuidFromBytes, None if the field is not set or
holds a different branch.
Sourcepub fn set_uuid_from_bytes<T: Into<Box<Empty>>>(self, v: T) -> Self
pub fn set_uuid_from_bytes<T: Into<Box<Empty>>>(self, v: T) -> Self
Sets the value of hash_function
to hold a UuidFromBytes.
Note that all the setters affecting hash_function are
mutually exclusive.
Trait Implementations§
impl StructuralPartialEq for ApplyHash
Auto Trait Implementations§
impl Freeze for ApplyHash
impl RefUnwindSafe for ApplyHash
impl Send for ApplyHash
impl Sync for ApplyHash
impl Unpin for ApplyHash
impl UnwindSafe for ApplyHash
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