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§
Sourcetype CreateTarget
type CreateTarget
Caller-supplied creation target type.
Required Methods§
Sourcefn create_publication(
&self,
request: CreatePublicationRequest<Self::CreateTarget, Self::Metadata, Self::Upload>,
) -> impl Future<Output = Result<Self::Output, Self::Error>>
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.