pub struct MemoryQuery {
pub namespace: MemoryNamespace,
pub text: Option<String>,
pub kinds: BTreeSet<DurableMemoryKind>,
pub statuses: BTreeSet<MemoryStatus>,
pub limit: usize,
}Expand description
Exact-namespace repository query. Active status is the default view.
Fields§
§namespace: MemoryNamespace§text: Option<String>§kinds: BTreeSet<DurableMemoryKind>§statuses: BTreeSet<MemoryStatus>§limit: usizeImplementations§
Source§impl MemoryQuery
impl MemoryQuery
pub fn new(namespace: MemoryNamespace) -> Self
pub fn with_text(self, text: impl Into<String>) -> Self
pub fn with_kinds( self, kinds: impl IntoIterator<Item = DurableMemoryKind>, ) -> Self
pub fn with_statuses( self, statuses: impl IntoIterator<Item = MemoryStatus>, ) -> Self
pub fn with_limit(self, limit: usize) -> Self
Trait Implementations§
Source§impl Clone for MemoryQuery
impl Clone for MemoryQuery
Source§fn clone(&self) -> MemoryQuery
fn clone(&self) -> MemoryQuery
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 MemoryQuery
impl Debug for MemoryQuery
Source§impl<'de> Deserialize<'de> for MemoryQuery
impl<'de> Deserialize<'de> for MemoryQuery
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
impl Eq for MemoryQuery
Source§impl PartialEq for MemoryQuery
impl PartialEq for MemoryQuery
Source§impl Serialize for MemoryQuery
impl Serialize for MemoryQuery
impl StructuralPartialEq for MemoryQuery
Auto Trait Implementations§
impl Freeze for MemoryQuery
impl RefUnwindSafe for MemoryQuery
impl Send for MemoryQuery
impl Sync for MemoryQuery
impl Unpin for MemoryQuery
impl UnsafeUnpin for MemoryQuery
impl UnwindSafe for MemoryQuery
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