#[repr(C)]pub struct ArchivedUpstreamCandidate{
pub upstream_id: <Box<str> as Archive>::Archived,
pub name: <Box<str> as Archive>::Archived,
pub kind: <Box<str> as Archive>::Archived,
pub observed_at_unix_secs: <u64 as Archive>::Archived,
pub predicted_cache_read_tokens: <u32 as Archive>::Archived,
pub plan_capacity_ratio: <f64 as Archive>::Archived,
pub organization_type: <Box<str> as Archive>::Archived,
pub rate_limit_tier: <Box<str> as Archive>::Archived,
pub seat_tier: <Box<str> as Archive>::Archived,
}Expand description
An archived UpstreamCandidate
Fields§
§upstream_id: <Box<str> as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::upstream_id
name: <Box<str> as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::name
kind: <Box<str> as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::kind
observed_at_unix_secs: <u64 as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::observed_at_unix_secs
predicted_cache_read_tokens: <u32 as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::predicted_cache_read_tokens
plan_capacity_ratio: <f64 as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::plan_capacity_ratio
organization_type: <Box<str> as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::organization_type
rate_limit_tier: <Box<str> as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::rate_limit_tier
seat_tier: <Box<str> as Archive>::ArchivedThe archived counterpart of UpstreamCandidate::seat_tier
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUpstreamCandidate
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUpstreamCandidate
Source§impl Debug for ArchivedUpstreamCandidate
impl Debug for ArchivedUpstreamCandidate
impl Portable for ArchivedUpstreamCandidate
Auto Trait Implementations§
impl !Unpin for ArchivedUpstreamCandidate
impl !UnsafeUnpin for ArchivedUpstreamCandidate
impl Freeze for ArchivedUpstreamCandidate
impl RefUnwindSafe for ArchivedUpstreamCandidate
impl Send for ArchivedUpstreamCandidate
impl Sync for ArchivedUpstreamCandidate
impl UnwindSafe for ArchivedUpstreamCandidate
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.