pub struct ApiSurface {
pub crate_name: String,
pub version: String,
pub types: Vec<TypeDef>,
pub functions: Vec<FunctionDef>,
pub enums: Vec<EnumDef>,
pub errors: Vec<ErrorDef>,
pub excluded_type_paths: HashMap<String, String>,
}Expand description
Complete API surface extracted from a Rust crate’s public interface.
Fields§
§crate_name: String§version: String§types: Vec<TypeDef>§functions: Vec<FunctionDef>§enums: Vec<EnumDef>§errors: Vec<ErrorDef>§excluded_type_paths: HashMap<String, String>Type names → fully qualified rust_paths for types that were extracted but
then excluded from the public binding surface. Preserved so trait_bridge
codegen can still reference them by qualified path when they appear in
trait method signatures (e.g. Renderer::render(&InternalDocument)).
Trait Implementations§
Source§impl Clone for ApiSurface
impl Clone for ApiSurface
Source§fn clone(&self) -> ApiSurface
fn clone(&self) -> ApiSurface
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 ApiSurface
impl Debug for ApiSurface
Source§impl Default for ApiSurface
impl Default for ApiSurface
Source§fn default() -> ApiSurface
fn default() -> ApiSurface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiSurface
impl<'de> Deserialize<'de> for ApiSurface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApiSurface
impl RefUnwindSafe for ApiSurface
impl Send for ApiSurface
impl Sync for ApiSurface
impl Unpin for ApiSurface
impl UnsafeUnpin for ApiSurface
impl UnwindSafe for ApiSurface
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