2022-11-23 14:53:51 +01:00
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "utf-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta name = "generator" content = "rustdoc" > < meta name = "description" content = "API documentation for the Rust `BackendTransaction` trait in crate `kanidmd_lib`." > < meta name = "keywords" content = "rust, rustlang, rust-lang, BackendTransaction" > < title > BackendTransaction in kanidmd_lib::be - Rust< / title > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceSerif4-Regular.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../FiraSans-Regular.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../FiraSans-Medium.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceCodePro-Regular.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceSerif4-Bold.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../SourceCodePro-Semibold.ttf.woff2" > < link rel = "stylesheet" href = "../../normalize.css" > < link rel = "stylesheet" href = "../../rustdoc.css" id = "mainThemeStyle" > < link rel = "stylesheet" href = "../../ayu.css" disabled > < link rel = "stylesheet" href = "../../dark.css" disabled > < link rel = "stylesheet" href = "../../light.css" id = "themeStyle" > < script id = "default-settings" > < / script > < script src = "../../storage.js" > < / script > < script defer src = "sidebar-items.js" > < / script > < script defer src = "../../main.js" > < / script > < noscript > < link rel = "stylesheet" href = "../../noscript.css" > < / noscript > < link rel = "alternate icon" type = "image/png" href = "../../favicon-16x16.png" > < link rel = "alternate icon" type = "image/png" href = "../../favicon-32x32.png" > < link rel = "icon" type = "image/svg+xml" href = "../../favicon.svg" > < / head > < body class = "rustdoc trait" > <!-- [if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif] --> < nav class = "mobile-topbar" > < button class = "sidebar-menu-toggle" > ☰ < / button > < a class = "sidebar-logo" href = "../../kanidmd_lib/index.html" > < div class = "logo-container" > < img class = "rust-logo" src = "../../rust-logo.svg" alt = "logo" > < / div > < / a > < h2 class = "location" > < / h2 > < / nav > < nav class = "sidebar" > < a class = "sidebar-logo" href = "../../kanidmd_lib/index.html" > < div class = "logo-container" > < img class = "rust-logo" src = "../../rust-logo.svg" alt = "logo" > < / div > < / a > < h2 class = "location" > < a href = "#" > BackendTransaction< / a > < / h2 > < div class = "sidebar-elems" > < section > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#required-associated-types" > Required Associated Types< / a > < / h3 > < ul > < li > < a href = "#associatedtype.IdlLayerType" > IdlLayerType< / a > < / li > < li > < a href = "#associatedtype.RuvType" > RuvType< / a > < / li > < / ul > < / div > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#required-methods" > Required Methods< / a > < / h3 > < ul > < li > < a href = "#tymethod.get_idlayer" > get_idlayer< / a > < / li > < li > < a href = "#tymethod.get_idxmeta_ref" > get_idxmeta_ref< / a > < / li > < li > < a href = "#tymethod.get_ruv" > get_ruv< / a > < / li > < / ul > < / div > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#provided-methods" > Provided Methods< / a > < / h3 > < ul > < li > < a href = "#method.backup" > backup< / a > < / li > < li > < a href = "#method.exists" > exists< / a > < / li > < li > < a href = "#method.filter2idl" > filter2idl< / a > < / li > < li > < a href = "#method.name2uuid" > name2uuid< / a > < / li > < li > < a href = "#method.search" > search< / a > < / li > < li > < a href = "#method.uuid2rdn" > uuid2rdn< / a > < / li > < li > < a href = "#method.uuid2spn" > uuid2spn< / a > < / li > < li > < a href = "#method.verify" > verify< / a > < / li > < li > < a href = "#method.verify_entry_index" > verify_entry_index< / a > < / li > < li > < a href = "#method.verify_indexes" > verify_indexes< / a > < / li > < li > < a href = "#method.verify_ruv" > verify_ruv< / a > < / li > < / ul > < / div > < div class = "block" > < h3 class = "sidebar-title" > < a href = "#implementors" > Implementors< / a > < / h3 > < / div > < / section > < h2 class = "location" > < a href = "index.html" > In kanidmd_lib::be< / a > < / h2 > < / div > < / nav > < main > < div class = "width-limiter" > < div class = "sub-container" > < a class = "sub-logo-container" href = "../../kanidmd_lib/index.html" > < img class = "rust-logo" src = "../../rust-logo.svg" alt = "logo" > < / a > < nav class = "sub" > < form class = "search-for
2022-10-07 11:23:12 +02:00
type < a href = "#associatedtype.IdlLayerType" class = "associatedtype" > IdlLayerType< / a > : IdlArcSqliteTransaction;
type < a href = "#associatedtype.RuvType" class = "associatedtype" > RuvType< / a > : ReplicationUpdateVectorTransaction;
< details class = "rustdoc-toggle type-contents-toggle" > < summary class = "hideme" > < span > Show 14 methods< / span > < / summary > fn < a href = "#tymethod.get_idlayer" class = "fnname" > get_idlayer< / a > (& self) -> & mut Self::< a class = "associatedtype" href = "trait.BackendTransaction.html#associatedtype.IdlLayerType" title = "type kanidmd_lib::be::BackendTransaction::IdlLayerType" > IdlLayerType< / a > ;
< span class = "item-spacer" > < / span > fn < a href = "#tymethod.get_ruv" class = "fnname" > get_ruv< / a > (& self) -> & mut Self::< a class = "associatedtype" href = "trait.BackendTransaction.html#associatedtype.RuvType" title = "type kanidmd_lib::be::BackendTransaction::RuvType" > RuvType< / a > ;
< span class = "item-spacer" > < / span > fn < a href = "#tymethod.get_idxmeta_ref" class = "fnname" > get_idxmeta_ref< / a > (& self) -> & < a class = "struct" href = "struct.IdxMeta.html" title = "struct kanidmd_lib::be::IdxMeta" > IdxMeta< / a > ;
2022-11-04 01:07:22 +01:00
fn < a href = "#method.filter2idl" class = "fnname" > filter2idl< / a > (< br > & self,< br > filt: & < a class = "enum" href = "../filter/enum.FilterResolved.html" title = "enum kanidmd_lib::filter::FilterResolved" > FilterResolved< / a > ,< br > thres: < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.usize.html" > usize< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < (< a class = "enum" href = "enum.IdList.html" title = "enum kanidmd_lib::be::IdList" > IdList< / a > , < a class = "enum" href = "../filter/enum.FilterPlan.html" title = "enum kanidmd_lib::filter::FilterPlan" > FilterPlan< / a > ), < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.search" class = "fnname" > search< / a > (< br > & self,< br > erl: & < a class = "struct" href = "../identity/struct.Limits.html" title = "struct kanidmd_lib::identity::Limits" > Limits< / a > ,< br > filt: & < a class = "struct" href = "../filter/struct.Filter.html" title = "struct kanidmd_lib::filter::Filter" > Filter< / a > < < a class = "struct" href = "../filter/struct.FilterValidResolved.html" title = "struct kanidmd_lib::filter::FilterValidResolved" > FilterValidResolved< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/sync/struct.Arc.html" title = "struct alloc::sync::Arc" > Arc< / a > < < a class = "type" href = "../entry/type.EntrySealedCommitted.html" title = "type kanidmd_lib::entry::EntrySealedCommitted" > EntrySealedCommitted< / a > > > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.exists" class = "fnname" > exists< / a > (< br > & self,< br > erl: & < a class = "struct" href = "../identity/struct.Limits.html" title = "struct kanidmd_lib::identity::Limits" > Limits< / a > ,< br > filt: & < a class = "struct" href = "../filter/struct.Filter.html" title = "struct kanidmd_lib::filter::Filter" > Filter< / a > < < a class = "struct" href = "../filter/struct.FilterValidResolved.html" title = "struct kanidmd_lib::filter::FilterValidResolved" > FilterValidResolved< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.bool.html" > bool< / a > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.verify" class = "fnname" > verify< / a > (& self) -> < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > > < span class = "notable-traits" > < span class = "notable-traits-tooltip" > ⓘ< span class = "notable-traits-tooltiptext" > < span class = "docblock" > < span class = "notable" > Notable traits for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < / span > < code class = "content" > < span class = "where fmt-newline" > impl< A> < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title = "trait std::io::Write" > Write< / a > for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < span class = "where fmt-newline" > where< br > A: < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title = "trait core::alloc::Allocator" > Allocator< / a > ,< / span > < / span > < / code > < / span > < / span > < / span > < / span > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.verify_entry_index" class = "fnname" > verify_entry_index< / a > (< br > & self,< br > e: & < a class = "struct" href = "../entry/struct.Entry.html" title = "struct kanidmd_lib::entry::Entry" > Entry< / a > < < a class = "struct" href = "../entry/struct.EntrySealed.html" title = "struct kanidmd_lib::entry::EntrySealed" > EntrySealed< / a > , < a class = "struct" href = "../entry/struct.EntryCommitted.html" title = "struct kanidmd_lib::entry::EntryCommitted" > EntryCommitted< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.verify_indexes" class = "fnname" > verify_indexes< / a > (& self) -> < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > > < span class = "notable-traits" > < span class = "notable-traits-tooltip" > ⓘ< span class = "notable-traits-tooltiptext" > < span class = "docblock" > < span class = "notable" > Notable traits for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < / span > < code class = "content" > < span class = "where fmt-newline" > impl< A> < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title = "trait std::io::Write" > Write< / a > for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < span class = "where fmt-newline" > where< br > A: < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title = "trait core::alloc::Allocator" > Allocator< / a > ,< / span > < / span > < / code > < / span > < / span > < / span > < / span > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.verify_ruv" class = "fnname" > verify_ruv< / a > (& self, results: & mut < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > > ) { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.backup" class = "fnname" > backup< / a > (& self, dst_path: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.name2uuid" class = "fnname" > name2uuid< / a > (& self, name: & < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.str.html" > str< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "../prelude/struct.Uuid.html" title = "struct kanidmd_lib::prelude::Uuid" > Uuid< / a > > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.uuid2spn" class = "fnname" > uuid2spn< / a > (& self, uuid: < a class = "struct" href = "../prelude/struct.Uuid.html" title = "struct kanidmd_lib::prelude::Uuid" > Uuid< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "enum" href = "../value/enum.Value.html" title = "enum kanidmd_lib::value::Value" > Value< / a > > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
< span class = "item-spacer" > < / span > fn < a href = "#method.uuid2rdn" class = "fnname" > uuid2rdn< / a > (& self, uuid: < a class = "struct" href = "../prelude/struct.Uuid.html" title = "struct kanidmd_lib::prelude::Uuid" > Uuid< / a > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > { ... }
2022-11-23 14:53:51 +01:00
< / details > }< / code > < / pre > < / div > < h2 id = "required-associated-types" class = "small-section-header" > Required Associated Types< a href = "#required-associated-types" class = "anchor" > < / a > < / h2 > < div class = "methods" > < div id = "associatedtype.IdlLayerType" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#162" > source< / a > < h4 class = "code-header" > type < a href = "#associatedtype.IdlLayerType" class = "associatedtype" > IdlLayerType< / a > : IdlArcSqliteTransaction< / h4 > < / div > < div id = "associatedtype.RuvType" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#166" > source< / a > < h4 class = "code-header" > type < a href = "#associatedtype.RuvType" class = "associatedtype" > RuvType< / a > : ReplicationUpdateVectorTransaction< / h4 > < / div > < / div > < h2 id = "required-methods" class = "small-section-header" > Required Methods< a href = "#required-methods" class = "anchor" > < / a > < / h2 > < div class = "methods" > < div id = "tymethod.get_idlayer" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#164" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.get_idlayer" class = "fnname" > get_idlayer< / a > (& self) -> & mut Self::< a class = "associatedtype" href = "trait.BackendTransaction.html#associatedtype.IdlLayerType" title = "type kanidmd_lib::be::BackendTransaction::IdlLayerType" > IdlLayerType< / a > < / h4 > < / div > < div id = "tymethod.get_ruv" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#168" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.get_ruv" class = "fnname" > get_ruv< / a > (& self) -> & mut Self::< a class = "associatedtype" href = "trait.BackendTransaction.html#associatedtype.RuvType" title = "type kanidmd_lib::be::BackendTransaction::RuvType" > RuvType< / a > < / h4 > < / div > < div id = "tymethod.get_idxmeta_ref" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#170" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.get_idxmeta_ref" class = "fnname" > get_idxmeta_ref< / a > (& self) -> & < a class = "struct" href = "struct.IdxMeta.html" title = "struct kanidmd_lib::be::IdxMeta" > IdxMeta< / a > < / h4 > < / div > < / div > < h2 id = "provided-methods" class = "small-section-header" > Provided Methods< a href = "#provided-methods" class = "anchor" > < / a > < / h2 > < div class = "methods" > < details class = "rustdoc-toggle" open > < summary > < div id = "method.filter2idl" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#175" > source< / a > < h4 class = "code-header" > fn < a href = "#method.filter2idl" class = "fnname" > filter2idl< / a > (< br > & self,< br > filt: & < a class = "enum" href = "../filter/enum.FilterResolved.html" title = "enum kanidmd_lib::filter::FilterResolved" > FilterResolved< / a > ,< br > thres: < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.usize.html" > usize< / a > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < (< a class = "enum" href = "enum.IdList.html" title = "enum kanidmd_lib::be::IdList" > IdList< / a > , < a class = "enum" href = "../filter/enum.FilterPlan.html" title = "enum kanidmd_lib::filter::FilterPlan" > FilterPlan< / a > ), < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > < / h4 > < / div > < / summary > < div class = "docblock" > < p > Recursively apply a filter, transforming into IdList’ s on the way. This builds a query
2022-10-07 11:23:12 +02:00
execution log, so that it can be examined how an operation proceeded.< / p >
2022-11-23 14:53:51 +01:00
< / div > < / details > < div id = "method.search" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#535" > source< / a > < h4 class = "code-header" > fn < a href = "#method.search" class = "fnname" > search< / a > (< br > & self,< br > erl: & < a class = "struct" href = "../identity/struct.Limits.html" title = "struct kanidmd_lib::identity::Limits" > Limits< / a > ,< br > filt: & < a class = "struct" href = "../filter/struct.Filter.html" title = "struct kanidmd_lib::filter::Filter" > Filter< / a > < < a class = "struct" href = "../filter/struct.FilterValidResolved.html" title = "struct kanidmd_lib::filter::FilterValidResolved" > FilterValidResolved< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/sync/struct.Arc.html" title = "struct alloc::sync::Arc" > Arc< / a > < < a class = "type" href = "../entry/type.EntrySealedCommitted.html" title = "type kanidmd_lib::entry::EntrySealedCommitted" > EntrySealedCommitted< / a > > > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > < / h4 > < / div > < details class = "rustdoc-toggle" open > < summary > < div id = "method.exists" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#630" > source< / a > < h4 class = "code-header" > fn < a href = "#method.exists" class = "fnname" > exists< / a > (< br > & self,< br > erl: & < a class = "struct" href = "../identity/struct.Limits.html" title = "struct kanidmd_lib::identity::Limits" > Limits< / a > ,< br > filt: & < a class = "struct" href = "../filter/struct.Filter.html" title = "struct kanidmd_lib::filter::Filter" > Filter< / a > < < a class = "struct" href = "../filter/struct.FilterValidResolved.html" title = "struct kanidmd_lib::filter::FilterValidResolved" > FilterValidResolved< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.bool.html" > bool< / a > , < a class = "enum" href = "../prelude/enum.OperationError.html" title = "enum kanidmd_lib::prelude::OperationError" > OperationError< / a > > < / h4 > < / div > < / summary > < div class = "docblock" > < p > Given a filter, assert some condition exists.
2022-10-07 11:23:12 +02:00
Basically, this is a specialised case of search, where we don’ t need to
load any candidates if they match. This is heavily used in uuid
refint and attr uniqueness.< / p >
2022-11-23 14:53:51 +01:00
< / div > < / details > < div id = "method.verify" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#691-693" > source< / a > < h4 class = "code-header" > fn < a href = "#method.verify" class = "fnname" > verify< / a > (& self) -> < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > > < span class = "notable-traits" > < span class = "notable-traits-tooltip" > ⓘ< span class = "notable-traits-tooltiptext" > < span class = "docblock" > < span class = "notable" > Notable traits for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < / span > < code class = "content" > < span class = "where fmt-newline" > impl< A> < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title = "trait std::io::Write" > Write< / a > for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < span class = "where fmt-newline" > where< br > A: < a class = "trait" href = "https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title = "trait core::alloc::Allocator" > Allocator< / a > ,< / span > < / span > < / code > < / span > < / span > < / span > < / span > < / h4 > < / div > < div id = "method.verify_entry_index" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#695-767" > source< / a > < h4 class = "code-header" > fn < a href = "#method.verify_entry_index" class = "fnname" > verify_entry_index< / a > (< br > & self,< br > e: & < a class = "struct" href = "../entry/struct.Entry.html" title = "struct kanidmd_lib::entry::Entry" > Entry< / a > < < a class = "struct" href = "../entry/struct.EntrySealed.html" title = "struct kanidmd_lib::entry::EntrySealed" > EntrySealed< / a > , < a class = "struct" href = "../entry/struct.EntryCommitted.html" title = "struct kanidmd_lib::entry::EntryCommitted" > EntryCommitted< / a > > < br > ) -> < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > < / h4 > < / div > < div id = "method.verify_indexes" class = "method has-srclink" > < a class = "srclink rightside" href = "../../src/kanidmd_lib/be/mod.rs.html#769-786" > source< / a > < h4 class = "code-header" > fn < a href = "#method.verify_indexes" class = "fnname" > verify_indexes< / a > (& self) -> < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "enum" href = "https://doc.rust-lang.org/1.65.0/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.unit.html" > ()< / a > , < a class = "enum" href = "../prelude/enum.ConsistencyError.html" title = "enum kanidmd_lib::prelude::ConsistencyError" > ConsistencyError< / a > > > < span class = "notable-traits" > < span class = "notable-traits-tooltip" > ⓘ< span class = "notable-traits-tooltiptext" > < span class = "docblock" > < span class = "notable" > Notable traits for < a class = "struct" href = "https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title = "struct alloc::vec::Vec" > Vec< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/1.65.0/std/primitive.u8.html" > u8< / a > , A> < / span > < code class = "content" > < span cl