Skip to main content

WireSchema

Trait WireSchema 

Source
pub trait WireSchema {
    const IS_UNIT: bool = false;

    // Required method
    fn append_schema(builder: &mut WireSchemaBuilder) -> i32;

    // Provided methods
    fn contains_stream(seen: &mut HashSet<&'static str>) -> bool { ... }
    fn wire_type_id() -> String { ... }
}
Expand description

Appends the concrete type’s schema directly to a shared wire arena.

Provided Associated Constants§

Source

const IS_UNIT: bool = false

Required Methods§

Provided Methods§

Source

fn contains_stream(seen: &mut HashSet<&'static str>) -> bool

Source

fn wire_type_id() -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WireSchema for ()

Source§

impl WireSchema for DateTime<Utc>

Source§

impl WireSchema for Duration

Source§

impl WireSchema for PathBuf

Source§

impl WireSchema for String

Source§

impl WireSchema for bool

Source§

impl WireSchema for char

Source§

impl WireSchema for f32

Source§

impl WireSchema for f64

Source§

impl WireSchema for i8

Source§

impl WireSchema for i16

Source§

impl WireSchema for i32

Source§

impl WireSchema for i64

Source§

impl WireSchema for str

Source§

impl WireSchema for u8

Source§

impl WireSchema for u16

Source§

impl WireSchema for u32

Source§

impl WireSchema for u64

Source§

impl WireSchema for usize

Source§

impl<A, B, C, D, E, F, G, H> WireSchema for (A, B, C, D, E, F, G, H)

Source§

impl<A, B, C, D, E, F, G> WireSchema for (A, B, C, D, E, F, G)

Source§

impl<A, B, C, D, E, F> WireSchema for (A, B, C, D, E, F)

Source§

impl<A, B, C, D, E> WireSchema for (A, B, C, D, E)

Source§

impl<A, B, C, D> WireSchema for (A, B, C, D)

Source§

impl<A, B, C> WireSchema for (A, B, C)
where A: WireSchema, B: WireSchema, C: WireSchema,

Source§

impl<A, B> WireSchema for (A, B)
where A: WireSchema, B: WireSchema,

Source§

impl<A> WireSchema for (A,)
where A: WireSchema,

Source§

impl<K, V> WireSchema for BTreeMap<K, V>
where K: WireSchema, V: WireSchema,

Source§

impl<K, V> WireSchema for HashMap<K, V>
where K: WireSchema, V: WireSchema,

Source§

impl<T, E> WireSchema for Result<T, E>
where T: WireSchema, E: WireSchema,

Source§

impl<T> WireSchema for &T
where T: WireSchema + ?Sized,

Source§

const IS_UNIT: bool = T::IS_UNIT

Source§

fn contains_stream(seen: &mut HashSet<&'static str>) -> bool

Source§

fn wire_type_id() -> String

Source§

fn append_schema(builder: &mut WireSchemaBuilder) -> i32

Source§

impl<T> WireSchema for Arc<T>
where T: WireSchema + ?Sized,

Source§

const IS_UNIT: bool = T::IS_UNIT

Source§

fn contains_stream(seen: &mut HashSet<&'static str>) -> bool

Source§

fn wire_type_id() -> String

Source§

fn append_schema(builder: &mut WireSchemaBuilder) -> i32

Source§

impl<T> WireSchema for Bound<T>
where T: WireSchema,

Source§

impl<T> WireSchema for Box<T>
where T: WireSchema + ?Sized,

Source§

const IS_UNIT: bool = T::IS_UNIT

Source§

fn contains_stream(seen: &mut HashSet<&'static str>) -> bool

Source§

fn wire_type_id() -> String

Source§

fn append_schema(builder: &mut WireSchemaBuilder) -> i32

Source§

impl<T> WireSchema for HashSet<T>
where T: WireSchema,

Source§

impl<T> WireSchema for Option<T>
where T: WireSchema,

Source§

impl<T> WireSchema for Rc<T>
where T: WireSchema + ?Sized,

Source§

const IS_UNIT: bool = T::IS_UNIT

Source§

fn contains_stream(seen: &mut HashSet<&'static str>) -> bool

Source§

fn wire_type_id() -> String

Source§

fn append_schema(builder: &mut WireSchemaBuilder) -> i32

Source§

impl<T> WireSchema for Vec<T>
where T: WireSchema,

Implementors§

Source§

impl WireSchema for AccountId

Source§

impl WireSchema for AgentAllFilter

Source§

impl WireSchema for AgentAnyFilter

Source§

impl WireSchema for AgentConfigVarsFilter

Source§

impl WireSchema for AgentCreatedAtFilter

Source§

impl WireSchema for AgentEnvFilter

Source§

impl WireSchema for AgentId

Source§

impl WireSchema for AgentMetadata

Source§

impl WireSchema for AgentNameFilter

Source§

impl WireSchema for AgentPropertyFilter

Source§

impl WireSchema for AgentStatus

Source§

impl WireSchema for AgentStatusFilter

Source§

impl WireSchema for AgentVersionFilter

Source§

impl WireSchema for CardId

Source§

impl WireSchema for CardView

Source§

impl WireSchema for ComponentId

Source§

impl WireSchema for EnvironmentId

Source§

impl WireSchema for FilterComparator

Source§

impl WireSchema for ForkDetails

Source§

impl WireSchema for ForkResult

Source§

impl WireSchema for GuestPermissionCardHandle

Source§

impl WireSchema for GuestQuotaTokenHandle

Source§

impl WireSchema for GuestSecretHandle

Source§

impl WireSchema for KernelModule

Source§

impl WireSchema for PatternGrant

Source§

impl WireSchema for PermissionCard

Source§

impl WireSchema for PermissionError

Source§

impl WireSchema for PolymorphicPermissionCard

Source§

impl WireSchema for ProcessExitStatus

Source§

impl WireSchema for PromiseId

Source§

impl WireSchema for QuotaToken

Source§

impl WireSchema for SchemaFingerprintV1

Available on crate feature guest only.
Source§

impl WireSchema for SchemaValueStream

Source§

impl WireSchema for StringFilterComparator

Source§

impl WireSchema for Timestamp

Source§

impl WireSchema for UpdateMode

Source§

impl WireSchema for Uuid

Source§

impl<U> WireSchema for Quantity<U>
where U: QuantityUnit,