Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/avro-rs
/ functions
Functions
1,631 in github.com/apache/avro-rs
⨍
Functions
1,631
◇
Types & classes
404
↓ 2 callers
Function
extract_rustdoc
(attributes: &[Attribute])
avro_derive/src/attributes/mod.rs:352
↓ 2 callers
Function
field_ordering_position
Used to define the ordering and inclusion of fields.
avro/src/schema/mod.rs:1196
↓ 2 callers
Function
field_to_field_default_expr
( field: &Field, default: FieldDefault, )
avro_derive/src/fields.rs:84
↓ 2 callers
Function
field_to_record_fields_expr
( field: &Field, with: &With, )
avro_derive/src/fields.rs:49
↓ 2 callers
Function
field_to_schema_expr
(field: &Field, with: &With)
avro_derive/src/fields.rs:25
↓ 2 callers
Method
find_fixed_of_size_n
Find a [`Schema::Fixed`] with the given size. Will use `names` to resolve references.
avro/src/schema/union.rs:161
↓ 2 callers
Method
find_record_with_n_fields
Find a [`Schema::Record`] with `n` fields. Will use `names` to resolve references.
avro/src/schema/union.rs:197
↓ 2 callers
Method
find_schema_with_known_schemata
Optionally returns a reference to the schema matched by this value, as well as its position within this union. Extra arguments: - `known_schemata` -
avro/src/schema/union.rs:232
↓ 2 callers
Method
get_decimal_integer
( &self, complex: &Map<String, Value>, key: &'static str, )
avro/src/schema/parser.rs:207
↓ 2 callers
Method
get_ref
Gets a reference to the underlying writer. NOTE**: There is likely data still in the buffer. To have all the data in the writer call [`flush`](Writer
avro/src/writer/mod.rs:457
↓ 2 callers
Method
get_schema_type_name
(&self, name: Name, value: &Value)
avro/src/schema/parser.rs:818
↓ 2 callers
Method
header
Create an Avro header based on schema, codec and sync marker.
avro/src/writer/mod.rs:508
↓ 2 callers
Method
independent_canonical_form
Returns the [Parsing Canonical Form] of `self` that is self contained (not dependent on any definitions in `schemata`) If you require a self containe
avro/src/schema/mod.rs:481
↓ 2 callers
Method
is_named
(self)
avro/src/schema/mod.rs:234
↓ 2 callers
Function
make_records
(record: Value, count: usize)
avro/benches/serde.rs:233
↓ 2 callers
Method
name
(&self)
avro/src/schema/name.rs:123
↓ 2 callers
Function
nanos
(duration: Duration)
avro/examples/benchmark.rs:29
↓ 2 callers
Method
parse_fixed
Parse a `serde_json::Value` representing a Avro fixed type into a `Schema`.
avro/src/schema/parser.rs:752
↓ 2 callers
Method
parse_input_schemas
Convert the input schemas to `parsed_schemas`.
avro/src/schema/parser.rs:85
↓ 2 callers
Method
parse_known_schema
Parse a string as a primitive type or reference to `parsed_schemas`.
avro/src/schema/parser.rs:119
↓ 2 callers
Method
parse_union
Parse a `serde_json::Value` representing a Avro union type into a `Schema`.
avro/src/schema/parser.rs:724
↓ 2 callers
Function
parsing_canonical_form
Parses a valid Avro schema into [the Parsing Canonical Form]. [the Parsing Canonical Form](https://avro.apache.org/docs/++version++/specification/#pa
avro/src/schema/mod.rs:1067
↓ 2 callers
Method
read_block_next
Try to read a data block, also performing schema resolution for the objects contained in the block. The objects are stored in an internal buffer to th
avro/src/reader/block.rs:143
↓ 2 callers
Method
read_bytes
Read `n` bytes from the reader. This does not check the current schema.
avro/src/serde/deser_schema/mod.rs:192
↓ 2 callers
Method
read_bytes_with_len
Read a bytes from the reader. This does not check the current schema.
avro/src/serde/deser_schema/mod.rs:184
↓ 2 callers
Method
read_header
(&self, reader: &mut impl Read)
avro/src/reader/single_object.rs:84
↓ 2 callers
Function
read_long
(reader: &mut R)
avro/src/util.rs:76
↓ 2 callers
Function
read_marker
Reads the marker bytes from Avro bytes generated earlier by a `Writer` # Panics Will panic if `bytes` does not contain at least 16 bytes.
avro/src/reader/mod.rs:190
↓ 2 callers
Method
read_string
Read a string from the reader. This does not check the current schema.
avro/src/serde/deser_schema/mod.rs:176
↓ 2 callers
Method
reader_schemata
Set the schemata that will be used to resolve any references in the reader's schema. This is equivalent to `.resolved_reader_schemata(ResolvedSchema:
avro/src/reader/datum.rs:115
↓ 2 callers
Function
resolve_names_with_schemata
( schemata: impl IntoIterator<Item = &'s Schema>, names: &mut NamesRef<'s>, enclosing_namespace: N
avro/src/schema/resolve.rs:217
↓ 2 callers
Function
schemas_to_validate
()
avro/tests/io.rs:25
↓ 2 callers
Function
seconds
(nanos: u64)
avro/examples/benchmark.rs:33
↓ 2 callers
Method
serialize_bytes
(self, v: &[u8])
avro/src/serde/ser.rs:183
↓ 2 callers
Method
serialize_default
(&mut self, position: usize)
avro/src/serde/ser_schema/record/mod.rs:149
↓ 2 callers
Method
serialize_element
(&mut self, value: &T)
avro/src/serde/ser_schema/block.rs:110
↓ 2 callers
Method
serialize_unit_variant
( self, _name: &'static str, variant_index: u32, variant: &'static str, )
avro/src/serde/ser_schema/mod.rs:429
↓ 2 callers
Method
size_hint
(&self)
avro/src/serde/deser_schema/tuple.rs:77
↓ 2 callers
Method
string
(&self, key: &str)
avro/src/util.rs:58
↓ 2 callers
Function
sync
(_s: S)
avro/src/schema/mod.rs:2126
↓ 2 callers
Function
to_implementation
( input_span: Span, ident: Ident, generics: Generics, container_attrs: NamedTypeOptions, d
avro_derive/src/structs.rs:30
↓ 2 callers
Method
to_sign_extended_bytes_with_len
(&self, len: usize)
avro/src/decimal.rs:91
↓ 2 callers
Method
user_metadata
(&self)
avro/src/reader/mod.rs:110
↓ 2 callers
Method
validate
Validate the value against the given [`Schema`]. See the [Avro specification](https://avro.apache.org/docs/++version++/specification) for the full se
avro/src/types.rs:378
↓ 2 callers
Function
validate_enum_symbol_name
(symbol: &str)
avro/src/validator.rs:228
↓ 2 callers
Function
validate_namespace
(ns: &str)
avro/src/validator.rs:177
↓ 2 callers
Function
validate_record_field_name
(field_name: &str)
avro/src/validator.rs:279
↓ 2 callers
Function
validate_schema_name
(schema_name: &str)
avro/src/validator.rs:124
↓ 2 callers
Function
write
(schema: &Schema, records: &[Value])
avro/benches/serde.rs:241
↓ 2 callers
Method
write_block
Write a block including the items and size header.
avro/src/serde/ser_schema/block.rs:275
↓ 2 callers
Method
write_ser
Serialize `T` to the writer.
avro/src/writer/datum.rs:144
↓ 2 callers
Method
write_value
Write a value to the writer.
avro/src/writer/datum.rs:115
↓ 2 callers
Method
write_value
(&mut self, v: Value, writer: &mut W)
avro/src/writer/single_object.rs:90
↓ 2 callers
Function
write_value_ref_owned_resolved
( resolved_schema: &ResolvedOwnedSchema, value: &Value, writer: &mut W, )
avro/src/writer/single_object.rs:230
↓ 1 callers
Method
add
(&self, msg: &str)
avro/tests/shared.rs:78
↓ 1 callers
Method
append
(&mut self, value: T)
avro/src/writer/mod.rs:195
↓ 1 callers
Method
append_marker
Generate and append synchronization marker to the payload.
avro/src/writer/mod.rs:472
↓ 1 callers
Method
apply_to_field
Apply a renaming rule to a struct field, returning the version expected in the source.
avro_derive/src/case.rs:114
↓ 1 callers
Function
bench_from_file
( c: &mut Criterion, file_path: &str, name: &str, )
avro/benches/serde.rs:308
↓ 1 callers
Function
clear_log_messages
Clears all log messages of this thread.
avro_test_helper/src/logger.rs:56
↓ 1 callers
Method
compare_fields
(&self, fields_one: &[RecordField], fields_two: &[RecordField])
avro/src/schema_equality.rs:226
↓ 1 callers
Function
compare_schemata
(schema_one: &Schema, schema_two: &Schema)
avro/src/schema_equality.rs:251
↓ 1 callers
Method
compression
(&self)
avro/src/codec.rs:239
↓ 1 callers
Method
compression_level
Get the compression level as a `u8`, note that this means the [`miniz_oxide::deflate::CompressionLevel::DefaultCompression`] variant will appear as `2
avro/src/codec.rs:35
↓ 1 callers
Function
create_datum
(schema: &Schema)
avro/examples/generate_interop_data.rs:30
↓ 1 callers
Function
de
(mut encoded: &[u8])
avro_derive/tests/serde.rs:54
↓ 1 callers
Function
de
(mut encoded: &[u8])
avro_derive/tests/derive.rs:71
↓ 1 callers
Function
decode_variable
Read a varint from the reader. Note: this function does not do zigzag decoding, for that see [`zag_i32`] and [`zag_i64`].
avro/src/util.rs:136
↓ 1 callers
Function
default_barparent_bar
()
avro/tests/avro-3787.rs:182
↓ 1 callers
Function
default_value_examples
()
avro/tests/io.rs:97
↓ 1 callers
Method
denormalize
Remove all external references from the schema. `schemata` must contain all externally referenced schemas. # Errors Will return a [`Details::SchemaR
avro/src/schema/mod.rs:731
↓ 1 callers
Method
denormalize_inner
( &mut self, schemata: &[Schema], defined_names: &mut HashSet<Name>, )
avro/src/schema/mod.rs:735
↓ 1 callers
Function
derive_avro_schema
(input: DeriveInput)
avro_derive/src/lib.rs:56
↓ 1 callers
Method
deserialize_any
(self, visitor: V)
avro/src/serde/de.rs:318
↓ 1 callers
Method
deserialize_any
(self, visitor: V)
avro/src/serde/deser_schema/mod.rs:228
↓ 1 callers
Method
deserialize_bool
(self, visitor: V)
avro/src/serde/deser_schema/mod.rs:274
↓ 1 callers
Method
deserialize_enum
( self, _name: &'static str, // This also includes aliases, so can't be used to check
avro/src/serde/deser_schema/mod.rs:712
↓ 1 callers
Method
deserialize_f32
(mut self, visitor: V)
avro/src/serde/deser_schema/mod.rs:444
↓ 1 callers
Method
deserialize_f64
(mut self, visitor: V)
avro/src/serde/deser_schema/mod.rs:455
↓ 1 callers
Method
deserialize_i32
(mut self, visitor: V)
avro/src/serde/deser_schema/mod.rs:324
↓ 1 callers
Method
deserialize_i64
(mut self, visitor: V)
avro/src/serde/deser_schema/mod.rs:335
↓ 1 callers
Method
deserialize_identifier
(self, visitor: V)
avro/src/serde/deser_schema/identifier.rs:252
↓ 1 callers
Method
deserialize_map
(self, visitor: V)
avro/src/serde/deser_schema/mod.rs:672
↓ 1 callers
Method
deserialize_seq
(self, visitor: V)
avro/src/serde/deser_schema/mod.rs:613
↓ 1 callers
Method
deserialize_str
(self, visitor: V)
avro/src/serde/de.rs:541
↓ 1 callers
Method
deserialize_struct
( self, _struct_name: &'static str, _fields: &'static [&'static str], visitor:
avro/src/serde/de.rs:768
↓ 1 callers
Method
deserialize_tuple
(self, _: usize, visitor: V)
avro/src/serde/de.rs:735
↓ 1 callers
Method
deserialize_unit
(self, visitor: V)
avro/src/serde/de.rs:667
↓ 1 callers
Method
deserialize_unit
(self, visitor: V)
avro/src/serde/deser_schema/mod.rs:558
↓ 1 callers
Method
enabled
(&self, _metadata: &Metadata)
avro_test_helper/src/logger.rs:29
↓ 1 callers
Function
encode_to_vec
(value: &Value, schema: &Schema)
avro/src/encode.rs:368
↓ 1 callers
Function
encode_variable
Write the number as a varint to the writer. Note: this function does not do zigzag encoding, for that see [`zig_i32`] and [`zig_i64`].
avro/src/util.rs:110
↓ 1 callers
Method
error
(&self, ty: &'static str, error: impl Into<String>)
avro/src/serde/deser_schema/enums.rs:165
↓ 1 callers
Method
fetch_schema_ref
Given a name, tries to retrieve the parsed schema from `parsed_schemas`. If a parsed schema is not found, it checks if a currently resolving schema w
avro/src/schema/parser.rs:147
↓ 1 callers
Function
field_aliases
Convert a list of strings to an expression that resolves to a `Vec<String>`.
avro_derive/src/utils.rs:57
↓ 1 callers
Method
fill_buf
(&mut self, n: usize)
avro/src/reader/block.rs:121
↓ 1 callers
Function
find_first_ref
Find the first Schema::Ref that has the target name
avro/src/serde/derive.rs:403
↓ 1 callers
Function
fp_table
()
avro/src/rabin.rs:26
↓ 1 callers
Function
generate_sync_marker
()
avro/src/writer/mod.rs:640
↓ 1 callers
Function
get_avro_bytes
Simulates reading from a pre-existing .avro file and returns its bytes
avro/tests/append_to_existing.rs:84
← previous
next →
201–300 of 1,631, ranked by callers