Enum elasticsearch_dsl::search::params::Byte
source · pub enum Byte {
Bytes(u64),
Kilobytes(u64),
Megabytes(u64),
Gigabytes(u64),
Terabytes(u64),
Petabytes(u64),
}Expand description
Whenever the byte size of data needs to be specified, e.g. when setting a
buffer size parameter, the value must specify the unit,
like 10kb for 10 kilobytes.
Note that these units use powers of 1024, so 1kb means 1024 bytes.
https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#byte-units
Variants§
Trait Implementations§
impl Copy for Byte
impl Eq for Byte
impl StructuralPartialEq for Byte
Auto Trait Implementations§
impl Freeze for Byte
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)