pub struct YpirScenario {
pub num_items: usize,
pub item_size_bits: usize,
}Expand description
Parameters describing a YPIR database scenario.
Serialized as JSON over HTTP so the client can reconstruct matching YPIR parameters locally without knowing the tier layout constants.
Fields§
§num_items: usize§item_size_bits: usizeTrait Implementations§
Source§impl Clone for YpirScenario
impl Clone for YpirScenario
Source§fn clone(&self) -> YpirScenario
fn clone(&self) -> YpirScenario
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 YpirScenario
impl Debug for YpirScenario
Source§impl<'de> Deserialize<'de> for YpirScenario
impl<'de> Deserialize<'de> for YpirScenario
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for YpirScenario
impl RefUnwindSafe for YpirScenario
impl Send for YpirScenario
impl Sync for YpirScenario
impl Unpin for YpirScenario
impl UnsafeUnpin for YpirScenario
impl UnwindSafe for YpirScenario
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