bookclerk_plugin_abi::plugin_capnp::db_value

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Item Kind Summary
Owned struct
Reader struct
Builder struct
Pipeline struct
Which enum
WhichReader type alias
WhichBuilder type alias

Structs

Owned

pub struct Owned(/* private */);

Implements: Clone, Copy, Introspect, Owned, OwnedStruct, Pipelined, SetterInput<Owned>

Reader

pub struct Reader<'a> {
    /* private fields */
}

Reader::reborrow

pub fn reborrow(&self) -> Reader<'_>

Reader::total_size

pub fn total_size(&self) -> Result<MessageSize>

Reader::has_text

pub fn has_text(&self) -> bool

Reader::has_bytes

pub fn has_bytes(&self) -> bool

Reader::which

pub fn which(self) -> Result<WhichReader<'a>, NotInSchema>

Implements: Clone, Copy, Debug, From<Reader<'a>>, From<StructReader<'a>>, FromPointerReader<'a>, HasTypeId, Imbue<'a>, IntoInternalStructReader<'a>, SetterInput<Owned>

Builder

pub struct Builder<'a> {
    /* private fields */
}

Builder::into_reader

pub fn into_reader(self) -> Reader<'a>

Builder::reborrow

pub fn reborrow(&mut self) -> Builder<'_>

Builder::reborrow_as_reader

pub fn reborrow_as_reader(&self) -> Reader<'_>

Builder::total_size

pub fn total_size(&self) -> Result<MessageSize>

Builder::set_null

pub fn set_null(&mut self, value: DbType)

Builder::set_boolean

pub fn set_boolean(&mut self, value: bool)

Builder::set_int64

pub fn set_int64(&mut self, value: i64)

Builder::set_float64

pub fn set_float64(&mut self, value: f64)

Builder::set_text

pub fn set_text(&mut self, value: impl SetterInput<Owned>)

Builder::init_text

pub fn init_text(self, size: u32) -> Builder<'a>

Builder::has_text

pub fn has_text(&self) -> bool

Builder::set_bytes

pub fn set_bytes(&mut self, value: Reader<'_>)

Builder::init_bytes

pub fn init_bytes(self, size: u32) -> Builder<'a>

Builder::has_bytes

pub fn has_bytes(&self) -> bool

Builder::which

pub fn which(self) -> Result<WhichBuilder<'a>, NotInSchema>

Implements: From<Builder<'a>>, From<StructBuilder<'a>>, FromPointerBuilder<'a>, HasStructSize, HasTypeId, ImbueMut<'a>

Pipeline

pub struct Pipeline {
    /* private fields */
}

Implements: FromTypelessPipeline

Enums

Which

pub enum Which<A0, A1> {
    Null(Result<DbType, NotInSchema>),
    Boolean(bool),
    Int64(i64),
    Float64(f64),
    Text(A0),
    Bytes(A1),
}

Type aliases

WhichReader

pub type WhichReader<'a> = Which<Result<Reader<'a>>, Result<Reader<'a>>>;

WhichBuilder

pub type WhichBuilder<'a> = Which<Result<Builder<'a>>, Result<Builder<'a>>>;

Generated from crates/bookclerk-plugin-abi at main · View as Markdown