MCPcopy Create free account

hub / github.com/Ten0/serde_avro_fast / functions

Functions461 in github.com/Ten0/serde_avro_fast

↓ 43 callersMethodmap
( state: &'r mut SerializerState<'c, 's, W>, elements_schema: &'s SchemaNode<'s>, min_len: usize, )
serde_avro_fast/src/ser/serializer/struct_or_map.rs:88
↓ 35 callersMethodas_ref
Compared to `Deref`, this propagates the lifetime of the reference
serde_avro_fast/src/schema/self_referential.rs:131
↓ 33 callersMethodget
Try to get the node at the given [`SchemaKey`] (or return `None` if the key is invalid) If you want to panic on invalid keys, use `schema[key]` inst
serde_avro_fast/src/schema/safe/mod.rs:109
↓ 31 callersMethodfinish
(self)
serde_avro_fast/src/schema/safe/rabin.rs:25
↓ 25 callersMethodwrite_str
(&mut self, s: &str)
serde_avro_fast/src/schema/safe/canonical_form.rs:181
↓ 20 callersMethodserialize
(&self, serializer: S)
serde_avro_fast/src/schema/safe/serialize.rs:15
↓ 19 callersMethodread_varint
(&mut self)
serde_avro_fast/src/de/read/mod.rs:79
↓ 17 callersFunctionfrom_datum_slice
Deserialize from an avro "datum" (raw data, no headers...) slice This is zero-alloc. Your structure may contain `&'a str`s that will end up pointing
serde_avro_fast/src/lib.rs:152
↓ 16 callersFunctionparse_str
(bytes: &[u8])
serde_avro_fast/src/de/deserializer/types/length_delimited.rs:46
↓ 16 callersMethodserialize_entry
(&mut self, key: &K, value: &V)
serde_avro_fast/src/ser/serializer/struct_or_map.rs:552
↓ 15 callersMethodwrite_char
(&mut self, c: char)
serde_avro_fast/src/schema/safe/canonical_form.rs:177
↓ 14 callersMethoddeserialize
Iterator over the deserialized values
serde_avro_fast/src/object_container_file_encoding/reader/mod.rs:208
↓ 13 callersMethodclone
(&self)
serde_avro_fast/src/schema/self_referential.rs:101
↓ 13 callersMethoddec
(self)
serde_avro_fast/src/de/deserializer/allowed_depth.rs:18
↓ 13 callersMethoddeserialize_any
(self, visitor: V)
serde_avro_fast/src/de/deserializer/mod.rs:22
↓ 12 callersFunctionread_decimal
( state: &mut DeserializerState<'_, R>, decimal_mode: DecimalMode<'_>, hint: VisitorHint, visitor: V, )
serde_avro_fast/src/de/deserializer/types/decimal.rs:13
↓ 12 callersFunctionround_trip_writer
(compression_codec: Compression, approx_block_size: u32)
serde_avro_fast/tests/object_container_file_encoding.rs:172
↓ 12 callersMethodserialize_union_unnamed
( self, union: &'s Union<'s>, variant_lookup: UnionVariantLookupKey, with_serializer: impl FnOnce(Self
serde_avro_fast/src/ser/serializer/mod.rs:522
↓ 11 callersMethodfully_qualified_name
The fully qualified name e.g. in `a.b.c` it's `a.b.c`
serde_avro_fast/src/schema/mod.rs:84
↓ 11 callersMethodinto_inner
Flush the final block (if a block was started) then return the underlying writer.
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:394
↓ 10 callersMethodend
Check that last block is complete and advertise end (zero-sized block)
serde_avro_fast/src/ser/serializer/blocks.rs:39
↓ 10 callersMethodserialize_integer
(self, num: N)
serde_avro_fast/src/ser/serializer/mod.rs:549
↓ 9 callersFunctionread_length_delimited
( state: &mut DeserializerState<'_, R>, visitor: BV, )
serde_avro_fast/src/de/deserializer/types/length_delimited.rs:13
↓ 9 callersFunctionserialize
( state: &'r mut SerializerState<'c, 's, W>, decimal_mode: DecimalMode<'s>, mut rust_decimal: rust_decimal:
serde_avro_fast/src/ser/serializer/decimal.rs:8
↓ 8 callersMethodwriter
Get writer by reference This may be useful to observe the state of the inner buffer, notably when re-using a `SerializerState` to write multiple obje
serde_avro_fast/src/ser/mod.rs:241
↓ 7 callersMethodfinish_block
Flush the current block (if a block was started) After this function is called, if it returned no error, it is guaranteed that the full block is writ
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:408
↓ 7 callersMethodserialize_map
(self, len: Option<usize>)
serde_avro_fast/src/ser/serializer/mod.rs:449
↓ 7 callersMethodserialize_str
(self, v: &str)
serde_avro_fast/src/ser/serializer/mod.rs:170
↓ 7 callersMethodvisit_str
(self, v: &str)
serde_avro_fast/src/schema/safe/parsing/raw.rs:115
↓ 6 callersMethodas_str
Gives the name of the logical type, as it appears in the schema JSON
serde_avro_fast/src/schema/safe/mod.rs:543
↓ 6 callersMethoddeserializer
Obtain the actual [`serde::Deserializer`] for this `DeserializerState`
serde_avro_fast/src/de/mod.rs:153
↓ 6 callersMethodinto_inner
Turn the `DeserializerState` into the reader it was built from, also extracting the original configuration (in case that needs to be re-used)
serde_avro_fast/src/de/mod.rs:169
↓ 6 callersMethodvisit_seq
(self, seq: A)
serde_avro_fast/src/schema/safe/parsing/raw.rs:105
↓ 5 callersMethodflush_finished_block
(&mut self)
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:414
↓ 5 callersMethodinto_writer
Get writer back
serde_avro_fast/src/ser/mod.rs:233
↓ 5 callersMethodnamespace
The namespace component of the fully qualified name e.g. in `a.b.c` it's `a.b`
serde_avro_fast/src/schema/mod.rs:76
↓ 5 callersMethodread_slice
(&mut self, n: usize, visitor: V)
serde_avro_fast/src/de/read/mod.rs:107
↓ 5 callersMethodserializable
(&self, key: NK)
serde_avro_fast/src/schema/safe/serialize.rs:41
↓ 5 callersMethodserialize_seq
(self, len: Option<usize>)
serde_avro_fast/src/ser/serializer/mod.rs:380
↓ 5 callersMethodserializer
Obtain the actual [`serde::Serializer`] for this `SerializerState`
serde_avro_fast/src/ser/mod.rs:213
↓ 5 callersFunctiontest
( datum: &'de [u8], rust_value: T, schema: &Schema, )
serde_avro_fast/tests/unions.rs:54
↓ 5 callersFunctionto_datum
Serialize an avro "datum" (raw data, no headers...) to the provided writer [`SerializerConfig`](ser::SerializerConfig) can be built from a schema: `
serde_avro_fast/src/lib.rs:195
↓ 4 callersMethodclip
may be unused depending on which compression codecs features are enabled
serde_avro_fast/src/object_container_file_encoding/mod.rs:120
↓ 4 callersFunctionduration
()
serde_avro_fast/tests/duration.rs:46
↓ 4 callersMethodidx
Obtain the index in the [`nodes`](SchemaMut::nodes) `Vec` of a [`SchemaMut`] that this [`SchemaKey`] points to.
serde_avro_fast/src/schema/safe/mod.rs:143
↓ 4 callersMethodreserve
Reserve a slot in the `nodes` array After building the `SchemaNode`, it should be put at the corresponding position in `nodes`.
serde_avro_derive/src/lib.rs:85
↓ 4 callersMethodroot
Obtain the root of the Schema It is the first node of the `nodes` `Vec`. # Panics If the `nodes` `Vec` is empty. This can only happen if you have up
serde_avro_fast/src/schema/safe/mod.rs:76
↓ 4 callersMethodserialize_lookup_union_variant_by_name
( self, variant_name: &str, f: impl FnOnce(DatumSerializer<'r, 'c, 's, W>) -> Result<O, SerError>, )
serde_avro_fast/src/ser/serializer/mod.rs:640
↓ 4 callersMethodsignal_next_record
(&mut self)
serde_avro_fast/src/ser/serializer/blocks.rs:27
↓ 4 callersMethodtake
(self, block_size: usize)
serde_avro_fast/src/de/read/take.rs:34
↓ 4 callersMethodvisit_map
(self, map: A)
serde_avro_fast/src/schema/safe/parsing/raw.rs:95
↓ 4 callersMethodwriter_mut
Get writer by mutable reference This may be useful to clear the inner buffer, when re-using a `SerializerState`.
serde_avro_fast/src/ser/mod.rs:249
↓ 3 callersMethodbuild
Build the [`Writer`] After this method is called, it is guaranteed that the full object container file encoding header is already written to the `wri
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:183
↓ 3 callersFunctionbuild_type_lookup
Returned boolean is `has_non_lifetime_generics`
serde_avro_derive_macros/src/build_schema/type_lookup.rs:4
↓ 3 callersMethoddeserialize_seed_next
Attempt to deserialize the next value via the advanced [`DeserializeSeed`] serde API A typical user should not need this. This may be useful for tra
serde_avro_fast/src/object_container_file_encoding/reader/mod.rs:285
↓ 3 callersFunctionduration_fields_incorrect
()
serde_avro_fast/src/ser/serializer/struct_or_map.rs:353
↓ 3 callersFunctionduration_seq_len_incorrect
()
serde_avro_fast/src/ser/serializer/seq_or_tuple.rs:197
↓ 3 callersMethodfield_type_and_instantiation
( &mut self, field: &'t SchemaDeriveField, field_kind: FieldKind<'_>, )
serde_avro_derive_macros/src/build_schema/field_types_and_instantiations.rs:32
↓ 3 callersMethodfill_buf
(&mut self)
serde_avro_fast/src/de/read/mod.rs:129
↓ 3 callersFunctionfrom_datum_reader
Deserialize from an avro "datum" (raw data, no headers...) `impl BufRead` If you only have an `impl Read`, wrap it in a [`BufReader`](std::io::BufRea
serde_avro_fast/src/lib.rs:167
↓ 3 callersMethodname
If the type is a named type, returns the name of the type.
serde_avro_fast/src/schema/safe/mod.rs:259
↓ 3 callersMethodno_cycle_guard
Make sure we aren't cycling
serde_avro_fast/src/schema/safe/serialize.rs:68
↓ 3 callersMethodread_const_size_buf
(&mut self)
serde_avro_fast/src/de/read/take.rs:62
↓ 3 callersFunctionread_discriminant
( state: &mut DeserializerState<'_, R>, )
serde_avro_fast/src/de/deserializer/types/discriminant.rs:3
↓ 3 callersMethodrelease
(self)
serde_avro_fast/src/schema/safe/serialize.rs:147
↓ 3 callersMethodserialize
Serialize one value as an object in the object container file
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:346
↓ 3 callersFunctionserialize_duration_field
( values: &mut [u32; 3], gotten_values: &mut u8, duration_field: extract_for_duration::DurationFieldName,
serde_avro_fast/src/ser/serializer/struct_or_map.rs:325
↓ 3 callersMethodserialize_name
(&self, map: &mut M, name: &'a Name)
serde_avro_fast/src/schema/safe/serialize.rs:125
↓ 3 callersFunctionserialize_record_value
( serializer_state: &'r mut SerializerState<'c, 's, W>, record_state: &mut RecordState<'s>, field_idx: usiz
serde_avro_fast/src/ser/serializer/struct_or_map.rs:251
↓ 3 callersFunctionserializing_same_field_name_twice
(field_name: &str)
serde_avro_fast/src/ser/serializer/struct_or_map.rs:346
↓ 3 callersMethodshould_write_as_ref
If this node was already written, return true (don't write it again). Otherwise, return false, assume we'll write it entirely and increment the counte
serde_avro_fast/src/schema/safe/serialize.rs:97
↓ 3 callersMethodstr_for_ref
(&self, name: &'a Name)
serde_avro_fast/src/schema/safe/serialize.rs:112
↓ 3 callersMethodvisit
(self, bytes: &[u8])
serde_avro_fast/src/de/read/mod.rs:261
↓ 3 callersMethodwrite_length_delimited
(&mut self, data: &[u8])
serde_avro_fast/src/ser/serializer/mod.rs:495
↓ 2 callersMethodallow_slow_sequence_to_bytes
For when you can't use `serde_bytes` and really need to serialize a sequence as bytes. If you need to serialize a `Vec<u8>` or `&[u8]` as `Bytes`/`Fi
serde_avro_fast/src/ser/mod.rs:152
↓ 2 callersFunctionapache_encode
( value: impl Into<Value>, schema: &apache_avro::Schema, out: &mut Vec<u8>, )
serde_avro_fast/tests/single_object_encoding.rs:63
↓ 2 callersFunctioncan_truncate_without_altering_number
(buf: &[u8])
serde_avro_fast/src/ser/serializer/decimal.rs:37
↓ 2 callersMethodcanonical_form_rabin_fingerprint
Obtain the Rabin fingerprint of the schema This is what is used for avro [single object encoding](https://avro.apache.org/docs/current/specification/
serde_avro_fast/src/schema/safe/canonical_form.rs:21
↓ 2 callersMethodcheck_allowed_slow_sequence_to_bytes
(&self)
serde_avro_fast/src/ser/serializer/mod.rs:506
↓ 2 callersMethodcheck_for_cycles
Check that the schema does not contain zero-sized unconditional cycles. This is called by the parsing functions already, so this may only be useful i
serde_avro_fast/src/schema/safe/check_for_cycles.rs:11
↓ 2 callersFunctioncheck_header
(slice: &[u8; 10], schema: &Schema)
serde_avro_fast/src/single_object_encoding.rs:45
↓ 2 callersFunctionclean_schema
(schema: &str)
serde_avro_derive/tests/derive_schema.rs:21
↓ 2 callersMethodcompressed_block
(&self)
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:607
↓ 2 callersMethodcompression
Specify the compression codec that each block will be compressed with
serde_avro_fast/src/object_container_file_encoding/writer/mod.rs:148
↓ 2 callersMethodconsume
(&mut self, amt: usize)
serde_avro_fast/src/de/read/mod.rs:133
↓ 2 callersMethoddeserialize_borrowed
Iterator over the deserialized values This can only be used if reading directly from a slice (Reader built via [`Reader::from_slice`], `R = `[`SliceR
serde_avro_fast/src/object_container_file_encoding/reader/mod.rs:226
↓ 2 callersMethoddeserialize_map
(self, visitor: V)
serde_avro_fast/src/de/deserializer/mod.rs:324
↓ 2 callersMethoddeserialize_tuple
(self, len: usize, visitor: V)
serde_avro_fast/src/de/deserializer/mod.rs:295
↓ 2 callersFunctionfield_idx
( record_state: &mut RecordState<'s>, field_name: &str, )
serde_avro_fast/src/ser/serializer/struct_or_map.rs:211
↓ 2 callersMethodhas_more
(&mut self)
serde_avro_fast/src/de/deserializer/types/blocks.rs:66
↓ 2 callersMethodinstantiate
may be unused depending on which compression codecs features are enabled
serde_avro_fast/src/object_container_file_encoding/mod.rs:132
↓ 2 callersMethodinstantiate_nb
may be unused depending on which compression codecs features are enabled
serde_avro_fast/src/object_container_file_encoding/mod.rs:141
↓ 2 callersMethodinto_left_after_take
(self)
serde_avro_fast/src/de/read/take.rs:94
↓ 2 callersMethodnodes
Obtain the underlying graph storage The first node (index `0`) is the root of the schema. [`SchemaKey`]s can be converted to indexes of this `Vec`.
serde_avro_fast/src/schema/safe/mod.rs:49
↓ 2 callersMethodrabin_fingerprint
Obtain the Rabin fingerprint of the schema
serde_avro_fast/src/schema/self_referential.rs:74
↓ 2 callersFunctionread_len
(state: &mut DeserializerState<'_, R>)
serde_avro_fast/src/de/deserializer/types/length_delimited.rs:3
↓ 2 callersFunctionread_union_discriminant
( state: &mut DeserializerState<'s, R>, union: &'s Union<'s>, )
serde_avro_fast/src/de/deserializer/types/union.rs:3
↓ 2 callersMethodregister_node
( &mut self, raw_schema: &'a raw::SchemaNode<'a>, enclosing_namespace: Option<&'a str>, )
serde_avro_fast/src/schema/safe/parsing/mod.rs:136
↓ 2 callersMethodremove_unreferenced_nodes
(&mut self)
serde_avro_fast/src/schema/safe/remove_unreferenced_nodes.rs:4
↓ 2 callersMethodschema
Get the schema that was used when creating this `SerializerConfig`. That is the one that will be used when building a serializer from this `Serialize
serde_avro_fast/src/ser/mod.rs:161
next →1–100 of 461, ranked by callers