(self)
return {
            "filename": self.filename
            if len(self.filename) <= 256
            else self.filename[-255:],
            "document": self.document,
            "filemode": self.filemode,
        }
Return a payload compatible with the scanning API.
Return a payload compatible with the scanning API.
Return a payload compatible with the scanning API .
def scan_dict(self) -> Dict[str, Any]:
        """Return a payload compatible with the scanning API."""
        return {
            "filename": self.filename
            if len(self.filename) <= 256
            else self.filename[-255:],
            "document": self.document,
            "filemode": self.filemode,
        }
def scan_dict ( self ) -> Dict [ str , Any ] : return { "filename" : self . filename if len ( self . filename ) <= 256 else self . filename [ - 255 : ] , "document" : self . document , "filemode" : self . filemode , }