pub struct GeminiImagePublications<H> { /* private fields */ }Expand description
Receipts, including malformed host replies, remain inspectable for host compensation. An uncertain publication is queried, never automatically sent again. This object and its resource scope belong to one invocation.
Implementations§
Source§impl<H> GeminiImagePublications<H>
impl<H> GeminiImagePublications<H>
Sourcepub async fn publish<R: ResourceAccess<PublishedHandle = H>>(
&mut self,
input: &GenerateContentResponseBody,
namespace: IdNamespace,
expires_at: SystemTime,
resources: &GenerationResources<'_, R>,
) -> Result<GenerateContentResponseBody, TransformError>
pub async fn publish<R: ResourceAccess<PublishedHandle = H>>( &mut self, input: &GenerateContentResponseBody, namespace: IdNamespace, expires_at: SystemTime, resources: &GenerationResources<'_, R>, ) -> Result<GenerateContentResponseBody, TransformError>
Publish validated image bytes as actual host URLs. A lost publish result is recovered by status only; Missing/Pending/Expired never replay a body.
Source§impl<H> GeminiImagePublications<H>
impl<H> GeminiImagePublications<H>
pub fn operation_ids(&self) -> impl Iterator<Item = &str>
pub fn receipts(&self) -> &[PublishedResource<H>]
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for GeminiImagePublications<H>
impl<H> RefUnwindSafe for GeminiImagePublications<H>
impl<H> Send for GeminiImagePublications<H>
impl<H> Sync for GeminiImagePublications<H>
impl<H> Unpin for GeminiImagePublications<H>
impl<H> UnsafeUnpin for GeminiImagePublications<H>
impl<H> UnwindSafe for GeminiImagePublications<H>
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