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>,
}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>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<'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