pub struct PostgresContentStore { /* private fields */ }Implementations§
Source§impl PostgresContentStore
impl PostgresContentStore
pub fn new(client: PostgresStoreClient) -> Self
Trait Implementations§
Source§impl Clone for PostgresContentStore
impl Clone for PostgresContentStore
Source§fn clone(&self) -> PostgresContentStore
fn clone(&self) -> PostgresContentStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContentResolver for PostgresContentStore
impl ContentResolver for PostgresContentStore
Source§fn resolve(
&self,
request: ContentResolveRequest,
policy: ContentResolutionPolicy,
) -> Result<ResolvedContent, ContentResolutionError>
fn resolve( &self, request: ContentResolveRequest, policy: ContentResolutionPolicy, ) -> Result<ResolvedContent, ContentResolutionError>
Resolves resolve through the configured ports::content boundary.
Concrete implementations own any backing-store, filesystem, or network
side effects.
Source§fn store_resolved_content(
&self,
content_ref: &ContentRef,
bytes: Vec<u8>,
) -> Result<(), ContentResolutionError>
fn store_resolved_content( &self, content_ref: &ContentRef, bytes: Vec<u8>, ) -> Result<(), ContentResolutionError>
Stores resolved content bytes and metadata in the content backing store.
Implementations store the resolved content bytes and metadata in the content resolver
backing store for later policy-checked lookup.
Source§impl ContentStore for PostgresContentStore
impl ContentStore for PostgresContentStore
Source§fn put_content(
&self,
content_ref: &ContentRef,
bytes: Vec<u8>,
) -> Result<(), ContentResolutionError>
fn put_content( &self, content_ref: &ContentRef, bytes: Vec<u8>, ) -> Result<(), ContentResolutionError>
Stores raw bytes for a content ref. Resolution still goes through
ContentResolver and its policy checks.Auto Trait Implementations§
impl !RefUnwindSafe for PostgresContentStore
impl !UnwindSafe for PostgresContentStore
impl Freeze for PostgresContentStore
impl Send for PostgresContentStore
impl Sync for PostgresContentStore
impl Unpin for PostgresContentStore
impl UnsafeUnpin for PostgresContentStore
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