pub struct BridgePartSpec {
pub kind: Symbol,
pub shape_expr: Expr,
pub render_class: RenderClass,
pub authority_class: AuthorityClass,
pub unknown_policy: UnknownPolicy,
}Expand description
Registered BRIDGE part-kind specification.
Fields§
§kind: SymbolPart kind symbol.
shape_expr: ExprShape expression for the part payload.
render_class: RenderClassRendering class.
Authority class.
unknown_policy: UnknownPolicyUnknown preservation policy.
Implementations§
Source§impl BridgePartSpec
impl BridgePartSpec
Sourcepub fn new(
kind: Symbol,
shape_expr: Expr,
render_class: RenderClass,
authority_class: AuthorityClass,
unknown_policy: UnknownPolicy,
) -> Self
pub fn new( kind: Symbol, shape_expr: Expr, render_class: RenderClass, authority_class: AuthorityClass, unknown_policy: UnknownPolicy, ) -> Self
Builds a normative registered part spec.
Sourcepub fn preserve_data_only(kind: Symbol, shape_expr: Expr) -> Self
pub fn preserve_data_only(kind: Symbol, shape_expr: Expr) -> Self
Builds a data-only preserving extension spec.
Trait Implementations§
Source§impl Clone for BridgePartSpec
impl Clone for BridgePartSpec
Source§fn clone(&self) -> BridgePartSpec
fn clone(&self) -> BridgePartSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BridgePartSpec
impl Debug for BridgePartSpec
impl Eq for BridgePartSpec
Source§impl PartialEq for BridgePartSpec
impl PartialEq for BridgePartSpec
impl StructuralPartialEq for BridgePartSpec
Auto Trait Implementations§
impl Freeze for BridgePartSpec
impl RefUnwindSafe for BridgePartSpec
impl Send for BridgePartSpec
impl Sync for BridgePartSpec
impl Unpin for BridgePartSpec
impl UnsafeUnpin for BridgePartSpec
impl UnwindSafe for BridgePartSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more