#[repr(C)]pub struct ArchivedUpstreamCandidateRef<'a>{
pub upstream_id: <InlineAsBox as ArchiveWith<&'a str>>::Archived,
pub name: <InlineAsBox as ArchiveWith<&'a str>>::Archived,
pub kind: <InlineAsBox as ArchiveWith<&'a str>>::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: <InlineAsBox as ArchiveWith<&'a str>>::Archived,
pub rate_limit_tier: <InlineAsBox as ArchiveWith<&'a str>>::Archived,
pub seat_tier: <InlineAsBox as ArchiveWith<&'a str>>::Archived,
}Expand description
An archived UpstreamCandidateRef
Fields§
§upstream_id: <InlineAsBox as ArchiveWith<&'a str>>::ArchivedThe archived counterpart of UpstreamCandidateRef::upstream_id
name: <InlineAsBox as ArchiveWith<&'a str>>::ArchivedThe archived counterpart of UpstreamCandidateRef::name
kind: <InlineAsBox as ArchiveWith<&'a str>>::ArchivedThe archived counterpart of UpstreamCandidateRef::kind
observed_at_unix_secs: <u64 as Archive>::ArchivedThe archived counterpart of UpstreamCandidateRef::observed_at_unix_secs
predicted_cache_read_tokens: <u32 as Archive>::ArchivedThe archived counterpart of UpstreamCandidateRef::predicted_cache_read_tokens
plan_capacity_ratio: <f64 as Archive>::ArchivedThe archived counterpart of UpstreamCandidateRef::plan_capacity_ratio
organization_type: <InlineAsBox as ArchiveWith<&'a str>>::ArchivedThe archived counterpart of UpstreamCandidateRef::organization_type
rate_limit_tier: <InlineAsBox as ArchiveWith<&'a str>>::ArchivedThe archived counterpart of UpstreamCandidateRef::rate_limit_tier
seat_tier: <InlineAsBox as ArchiveWith<&'a str>>::ArchivedThe archived counterpart of UpstreamCandidateRef::seat_tier
Trait Implementations§
Source§impl<'a, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUpstreamCandidateRef<'a>where
InlineAsBox: ArchiveWith<&'a str>,
u64: Archive,
u32: Archive,
f64: Archive,
<__C as Fallible>::Error: Trace,
<InlineAsBox as ArchiveWith<&'a str>>::Archived: CheckBytes<__C>,
<u64 as Archive>::Archived: CheckBytes<__C>,
<u32 as Archive>::Archived: CheckBytes<__C>,
<f64 as Archive>::Archived: CheckBytes<__C>,
impl<'a, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedUpstreamCandidateRef<'a>where
InlineAsBox: ArchiveWith<&'a str>,
u64: Archive,
u32: Archive,
f64: Archive,
<__C as Fallible>::Error: Trace,
<InlineAsBox as ArchiveWith<&'a str>>::Archived: CheckBytes<__C>,
<u64 as Archive>::Archived: CheckBytes<__C>,
<u32 as Archive>::Archived: CheckBytes<__C>,
<f64 as Archive>::Archived: CheckBytes<__C>,
impl<'a> Portable for ArchivedUpstreamCandidateRef<'a>
Auto Trait Implementations§
impl<'a> !Freeze for ArchivedUpstreamCandidateRef<'a>
impl<'a> !RefUnwindSafe for ArchivedUpstreamCandidateRef<'a>
impl<'a> !Send for ArchivedUpstreamCandidateRef<'a>
impl<'a> !Sync for ArchivedUpstreamCandidateRef<'a>
impl<'a> !Unpin for ArchivedUpstreamCandidateRef<'a>
impl<'a> !UnsafeUnpin for ArchivedUpstreamCandidateRef<'a>
impl<'a> !UnwindSafe for ArchivedUpstreamCandidateRef<'a>
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.