Skip to main content

CreatePublication

Trait CreatePublication 

Source
pub trait CreatePublication: ClientContext {
    type CreateTarget;
    type Metadata;
    type Upload;
    type Output;

    // Required method
    fn create_publication(
        &self,
        request: CreatePublicationRequest<Self::CreateTarget, Self::Metadata, Self::Upload>,
    ) -> impl Future<Output = Result<Self::Output, Self::Error>>;
}
Expand description

Capability for creating and publishing a brand-new resource.

Required Associated Types§

Source

type CreateTarget

Caller-supplied creation target type.

Source

type Metadata

Service-specific metadata type.

Source

type Upload

Service-specific upload specification type.

Source

type Output

Service-specific workflow result type.

Required Methods§

Source

fn create_publication( &self, request: CreatePublicationRequest<Self::CreateTarget, Self::Metadata, Self::Upload>, ) -> impl Future<Output = Result<Self::Output, Self::Error>>

Runs the service’s “create a new published resource” workflow.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§